From db910e38e65586c7ab7875edbe2b7f21e03d5450 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 22 Mar 2014 18:34:33 +0100 Subject: tests: Drop some more Python 2.6 cruft We do not support Python 2.6 anymore, so we can get rid of this. --- tests/test_apt_cache.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/test_apt_cache.py') diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index ee4fc50b..4df5e27d 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -16,12 +16,6 @@ import sys import tempfile import unittest -if sys.version_info[0] == 2 and sys.version_info[1] == 6: - from unittest2 import TestCase - TestCase # pyflakes -else: - from unittest import TestCase - from test_all import get_library_dir libdir = get_library_dir() @@ -51,7 +45,7 @@ def get_open_file_descriptors(): return set(map(int, fds)) -class TestAptCache(TestCase): +class TestAptCache(unittest.TestCase): """ test the apt cache """ def setUp(self): -- cgit v1.2.3