Modify ↓
Opened 18 years ago
Closed 18 years ago
#7138 closed defect (fixed)
Typos in Assertions
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | general | Version: | devel |
| Severity: | trivial | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Just a couple of typos in ticket model assertions, here's a patch:
Index: trac/ticket/model.py
===================================================================
--- trac/ticket/model.py (revision 6851)
+++ trac/ticket/model.py (working copy)
@@ -369,7 +369,7 @@
exists = property(fget=lambda self: self._old_value is not None)
def delete(self, db=None):
- assert self.exists, 'Cannot deleting non-existent %s' % self.type
+ assert self.exists, 'Cannot delete non-existent %s' % self.type
if not db:
db = self.env.get_db_cnx()
handle_ta = True
@@ -515,7 +515,7 @@
exists = property(fget=lambda self: self._old_name is not None)
def delete(self, db=None):
- assert self.exists, 'Cannot deleting non-existent component'
+ assert self.exists, 'Cannot delete non-existent component'
if not db:
db = self.env.get_db_cnx()
handle_ta = True
@@ -745,7 +745,7 @@
exists = property(fget=lambda self: self._old_name is not None)
def delete(self, db=None):
- assert self.exists, 'Cannot deleting non-existent version'
+ assert self.exists, 'Cannot delete non-existent version'
if not db:
db = self.env.get_db_cnx()
handle_ta = True
And also, in the TESTING-README file, it says "Welcome to the testing branch" in the trunk version.
Attachments (0)
Note:
See TracTickets
for help on using tickets.



Done in [6869], thanks for the patch!