summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-12-07 14:35:48 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-12-07 14:35:48 +0100
commit6a05a8302c405c4c8d1b59f6be8c2d0974c6ce1e (patch)
tree1823c27fc4297a99dcca1542134505722830da93
parentd3897306b07fab8490b32e8822685b54959be3e5 (diff)
downloadpython-apt-6a05a8302c405c4c8d1b59f6be8c2d0974c6ce1e.tar.gz
tests/test_all.py: add workaround for py3.2
-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"):