[python-debian/master 1/2] Fix a programming error in test_debian_support.py

John Wright jsw at debian.org
Fri Apr 15 09:03:25 UTC 2011


I copied and pasted from test_changelog.py, and evidently didn't run the
tests before committing...
---
 tests/test_debian_support.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test_debian_support.py b/tests/test_debian_support.py
index 45f304b..2a8355a 100755
--- a/tests/test_debian_support.py
+++ b/tests/test_debian_support.py
@@ -72,8 +72,9 @@ class VersionTests(unittest.TestCase):
         self._test_version('2:1.0.4+svn26-1ubuntu1', '2', '1.0.4+svn26',
                            '1ubuntu1')
         self._test_version('2:1.0.4~rc2-1', '2', '1.0.4~rc2', '1')
-        self.assertRaises(
-            ValueError, changelog.Version, 'a1:1.8.8-070403-1~priv1')
+        for cls in AptPkgVersion, NativeVersion:
+            self.assertRaises(
+                ValueError, cls, 'a1:1.8.8-070403-1~priv1')
 
     def test_version_updating(self):
         if debian_support._have_apt_pkg:
-- 
1.7.1





More information about the pkg-python-debian-commits mailing list