Rev 4669: Handle a plugin fallback versioning issue. in http://bazaar.launchpad.net/~jameinel/bzr/2.0-full-version

John Arbash Meinel john at arbash-meinel.com
Tue Sep 15 01:40:08 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.0-full-version

------------------------------------------------------------
revno: 4669
revision-id: john at arbash-meinel.com-20090915003940-qsyb0xk8lxoetzp3
parent: john at arbash-meinel.com-20090911182819-gpvoop807tw784ir
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.0-full-version
timestamp: Mon 2009-09-14 19:39:40 -0500
message:
  Handle a plugin fallback versioning issue.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_plugins.py'
--- a/bzrlib/tests/test_plugins.py	2009-06-10 03:56:49 +0000
+++ b/bzrlib/tests/test_plugins.py	2009-09-15 00:39:40 +0000
@@ -390,13 +390,18 @@
     def test_dev_fallback__version__with_version_info(self):
         self.setup_plugin("version_info = (1, 2, 3, 'dev', 4)")
         plugin = bzrlib.plugin.plugins()['plugin']
-        self.assertEqual("1.2.3.dev.4", plugin.__version__)
+        self.assertEqual("1.2.3dev4", plugin.__version__)
 
     def test_final__version__with_version_info(self):
         self.setup_plugin("version_info = (1, 2, 3, 'final', 0)")
         plugin = bzrlib.plugin.plugins()['plugin']
         self.assertEqual("1.2.3", plugin.__version__)
 
+    def test_final_fallback__version__with_version_info(self):
+        self.setup_plugin("version_info = (1, 2, 3, 'final', 2)")
+        plugin = bzrlib.plugin.plugins()['plugin']
+        self.assertEqual("1.2.3.final.2", plugin.__version__)
+
 
 class TestPluginHelp(TestCaseInTempDir):
 



More information about the bazaar-commits mailing list