summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_all.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_all.py b/tests/test_all.py
index d6370747..091581f8 100644
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -9,6 +9,14 @@ import os
import unittest
import sys
+# workaround for py3.2 that apparently does not have this anymore
+# it has "abiflags"
+if not hasattr(sys, "pydebug"):
+ if sys.abiflags.startswith("d"):
+ sys.pydebug = True
+ else:
+ sys.pydebug = False
+
def get_library_dir():
# Find the path to the built apt_pkg and apt_inst extensions
if not os.path.exists("../build"):