summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-12-07 14:44:39 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-12-07 14:44:39 +0100
commit75d543ab1da09548cda785f76401f4c40b799e26 (patch)
treebe1eed9e595e0fd423540fca7f02cf0558d83d31 /tests
parent871ae7011578cd84269e0ddfe20609261cfb88a1 (diff)
parent6a05a8302c405c4c8d1b59f6be8c2d0974c6ce1e (diff)
downloadpython-apt-75d543ab1da09548cda785f76401f4c40b799e26.tar.gz
merged from the mvo branch
Diffstat (limited to 'tests')
-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"):