From 7cf77010c108df676d3e277716f790b994bba28e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 8 May 2013 18:22:28 +0200 Subject: add py2.6 compatibility --- tests/test_all.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/test_all.py') 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"): -- cgit v1.2.3