summaryrefslogtreecommitdiff
path: root/tests/test_auth.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-10-12 11:06:34 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-10-12 11:06:34 +0200
commitcd32418cab838095163688ec25095032daec07e5 (patch)
tree1f6f8c74851cf9f0379d252deb55f1d3c6e7ba4c /tests/test_auth.py
parent78e9e09c400d9ea185da11328a00ef9251c0b342 (diff)
parent02820025e1d48f7bde9551aeda6f12784ab0c954 (diff)
downloadpython-apt-cd32418cab838095163688ec25095032daec07e5.tar.gz
merged from the debian-sid branch
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r--tests/test_auth.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index d742a471..2b524d28 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -14,6 +14,13 @@ else:
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler as HTTPRequestHandler
+
+if sys.version_info[0] == 2 and sys.version_info[1] == 6:
+ from unittest2 import TestCase
+else:
+ from unittest import TestCase
+
+
import apt_pkg
import apt.auth
@@ -103,7 +110,7 @@ DHcut3Yey8o=
-----END PGP PUBLIC KEY BLOCK-----"""
-class TestAuthKeys(unittest.TestCase):
+class TestAuthKeys(TestCase):
"""Test handling of keys for signed repositories."""