Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7138 closed defect (fixed)

Typos in Assertions

Reported by: trac@… 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)

Change History (1)

comment:1 by Christian Boos, 16 years ago

Resolution: fixed
Status: newclosed

Done in [6869], thanks for the patch!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.