diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-01-06 12:36:29 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-01-06 12:36:29 +0100 |
| commit | f6c94dbe9cbfa645b19832842183e248f940f829 (patch) | |
| tree | 271239a095a573a8fbef75fec274f6d1f965ffea /tests/test_auth.py | |
| parent | af7a03182edaf58a18e1821d172c0f0dd869c898 (diff) | |
| download | python-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.py | 9 |
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.""" |
