summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_all.py9
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"):