Edgewall Software

Ticket #7138 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Typos in Assertions

Reported by: trac@… Owned by: jonas
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: trivial Keywords:
Cc:

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

Change History

Changed 8 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed

Done in [6869], thanks for the patch!

Add/Change #7138 (Typos in Assertions)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.