summaryrefslogtreecommitdiffhomepage
path: root/tests/12_test_deb.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/12_test_deb.py')
-rw-r--r--tests/12_test_deb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/12_test_deb.py b/tests/12_test_deb.py
index 669896a4..d06bc432 100644
--- a/tests/12_test_deb.py
+++ b/tests/12_test_deb.py
@@ -156,7 +156,8 @@ class TestDpkgCompareVersions(unittest.TestCase):
self.assertEqual(ret, 0)
def testBadVersion(self):
- self.assertRaises(CommandExecFailed, self.cmp, '_', '_ _')
+ with self.assertRaises(CommandExecFailed):
+ self.cmp('_', '_ _')
@unittest.skipIf(not os.path.exists('/usr/bin/dpkg'), 'Dpkg not found')