summaryrefslogtreecommitdiff
path: root/tests/test_auth.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2014-01-06 12:36:29 +0100
committerJulian Andres Klode <jak@debian.org>2014-01-06 12:36:29 +0100
commitf6c94dbe9cbfa645b19832842183e248f940f829 (patch)
tree271239a095a573a8fbef75fec274f6d1f965ffea /tests/test_auth.py
parentaf7a03182edaf58a18e1821d172c0f0dd869c898 (diff)
downloadpython-apt-f6c94dbe9cbfa645b19832842183e248f940f829.tar.gz
tests: Remove checks for Python older than 2.7
This simplifies the test code a tiny bit.
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r--tests/test_auth.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index a9cfe736..dafbdc31 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -22,13 +22,6 @@ else:
from SimpleHTTPServer import SimpleHTTPRequestHandler as HTTPRequestHandler
-if sys.version_info[0] == 2 and sys.version_info[1] == 6:
- from unittest2 import TestCase
- TestCase # pyflakes
-else:
- from unittest import TestCase
-
-
import apt_pkg
import apt.auth
@@ -118,7 +111,7 @@ DHcut3Yey8o=
-----END PGP PUBLIC KEY BLOCK-----"""
-class TestAuthKeys(TestCase):
+class TestAuthKeys(unittest.TestCase):
"""Test handling of keys for signed repositories."""