[asterisk-commits] kpfleming: testsuite/asterisk/trunk r3146 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 23 17:23:58 CDT 2012


Author: kpfleming
Date: Fri Mar 23 17:23:56 2012
New Revision: 3146

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3146
Log:
Fix the last commit to *completely* solve the problem.


Modified:
    asterisk/trunk/lib/python/asterisk/version.py

Modified: asterisk/trunk/lib/python/asterisk/version.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/version.py?view=diff&rev=3146&r1=3145&r2=3146
==============================================================================
--- asterisk/trunk/lib/python/asterisk/version.py (original)
+++ asterisk/trunk/lib/python/asterisk/version.py Fri Mar 23 17:23:56 2012
@@ -51,7 +51,7 @@
             if self.branch == "trunk":
                 res = 9999999999
             elif self.branch[:6] == "branch":
-                res = int(AsteriskVersion(self.branch[7:])) + 99999
+                res = int(AsteriskVersion(self.branch[7:])) + 999999
             else:
                 # team branch XXX (may not be off of trunk)
                 res = 9999999999
@@ -346,12 +346,12 @@
         self.assertTrue(v1 < v2)
 
     def test_cmp21(self):
-        v1 = AsteriskVersion("1.8.9")
+        v1 = AsteriskVersion("1.8.10")
         v2 = AsteriskVersion("SVN-branch-1.8-r360138")
         self.assertTrue(v1 < v2)
 
     def test_cmp22(self):
-        v1 = AsteriskVersion("1.8.9")
+        v1 = AsteriskVersion("1.8.10")
         v2 = AsteriskVersion("SVN-branch-1.8-r360138M")
         self.assertTrue(v1 < v2)
 




More information about the asterisk-commits mailing list