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_auth.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tests/test_auth.py') diff --git a/tests/test_auth.py b/tests/test_auth.py index dafbdc31..790ed380 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -115,18 +115,6 @@ class TestAuthKeys(unittest.TestCase): """Test handling of keys for signed repositories.""" - if sys.version_info[0] == 2 and sys.version_info[1] < 7: - def addCleanup(self, function, *args, **kwds): - try: - self.cleanup.append(lambda: function(*args, **kwds)) - except AttributeError: - self.cleanup = [lambda: function(*args, **kwds)] - - def tearDown(self): - for f in self.cleanup: - f() - self.cleanup = [] - def setUp(self): # reset any config manipulations done in the individual tests apt_pkg.init_config() -- cgit v1.2.3