diff options
| author | Michael Vogt <egon@debian-devbox> | 2013-05-08 18:22:28 +0200 |
|---|---|---|
| committer | Michael Vogt <egon@debian-devbox> | 2013-05-08 18:22:28 +0200 |
| commit | 7cf77010c108df676d3e277716f790b994bba28e (patch) | |
| tree | f431479e2946f5e4cf73cb3688128013f8f32660 /tests | |
| parent | c457cd70fadceec1109047fd9403608fa4da5a76 (diff) | |
| download | python-apt-7cf77010c108df676d3e277716f790b994bba28e.tar.gz | |
add py2.6 compatibility
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_all.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_all.py b/tests/test_all.py index 0f548781..80526d76 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -6,9 +6,16 @@ # notice and this notice are preserved. """Run all available unit tests.""" import os -import unittest import sys +try: + import unittest.runner + import unittest +except ImportError: + # py2.6 compat + import unittest2 as unittest + + # workaround for py3.2 that apparently does not have this anymore # it has "abiflags" if not hasattr(sys, "pydebug"): |
