Rev 404: Remove my win32 hacks to the test suite. in http://bzr.arbash-meinel.com/branches/bzr/bzr-builddeb/changelog-hook

John Arbash Meinel john at arbash-meinel.com
Thu Jan 28 12:19:34 GMT 2010


At http://bzr.arbash-meinel.com/branches/bzr/bzr-builddeb/changelog-hook

------------------------------------------------------------
revno: 404
revision-id: john at arbash-meinel.com-20100128121910-103adgz1z8hw2mms
parent: john at arbash-meinel.com-20100128120658-1fmqqd01771cgck7
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: changelog-hook
timestamp: Thu 2010-01-28 06:19:10 -0600
message:
  Remove my win32 hacks to the test suite.
-------------- next part --------------
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py	2010-01-28 11:16:31 +0000
+++ b/tests/__init__.py	2010-01-28 12:19:10 +0000
@@ -135,9 +135,8 @@
              'changes',
              'config'
              ]
-    # XXX: Restore these
-    # for mod in doctest_mod_names:
-    #     suite.addTest(doctest.DocTestSuite("bzrlib.plugins.builddeb." + mod))
+    for mod in doctest_mod_names:
+        suite.addTest(doctest.DocTestSuite("bzrlib.plugins.builddeb." + mod))
     repack_tarball_tests = loader.loadTestsFromModuleNames(
             ['%s.test_repack_tarball' % __name__])
     scenarios = [('dir', dict(build_tarball=make_new_upstream_dir,
@@ -158,14 +157,11 @@
 class BuilddebTestCase(TestCaseWithTransport):
 
     package_name = 'test'
-    # XXX: Restore these
-    package_version = None #Version('0.1-1')
+    package_version = Version('0.1-1')
     upstream_version = property(lambda self: \
                                 self.package_version.upstream_version)
 
     def make_changelog(self, version=None):
-        if self.package_version is None:
-            self.package_version = Version('0.1-1')
         if version is None:
             version = self.package_version
         c = Changelog()



More information about the bazaar-commits mailing list