summaryrefslogtreecommitdiff
path: root/tests/test_debfile.py
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-31 23:18:43 +0100
committerMichael Vogt <mvo@debian.org>2014-01-05 20:04:26 +0100
commite3c26754af1891d2c50993730467fc9335ec5f09 (patch)
treea4caaa2974ef7108807a790885c7b560f900a783 /tests/test_debfile.py
parenteac4d047d8774def55b03cb82d505d237d93ea55 (diff)
downloadpython-apt-e3c26754af1891d2c50993730467fc9335ec5f09.tar.gz
make pyflakes clean
Diffstat (limited to 'tests/test_debfile.py')
-rw-r--r--tests/test_debfile.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/test_debfile.py b/tests/test_debfile.py
index 3e933944..9379884a 100644
--- a/tests/test_debfile.py
+++ b/tests/test_debfile.py
@@ -123,15 +123,8 @@ Description: testpackage for gdebi - contains usr/bin/binary for file reading
deb.missing_deps
def test_no_supported_data_tar(self):
- # ensure that a unknown data.tar.xxx raises a exception
- raised = False
- try:
- deb = apt.debfile.DebPackage("./data/test_debs/data-tar-broken.deb")
- except SystemError:
- raised = True
- # with self.assertRaises(SystemError): is more elegant above, but
- # we need to support python2.6
- self.assertTrue(raised)
+ with self.assertRaises(SystemError):
+ apt.debfile.DebPackage("./data/test_debs/data-tar-broken.deb")
def test_contains(self):
deb = apt.debfile.DebPackage("./data/test_debs/data-tar-xz.deb")