From 6a05a8302c405c4c8d1b59f6be8c2d0974c6ce1e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 7 Dec 2010 14:35:48 +0100 Subject: tests/test_all.py: add workaround for py3.2 --- tests/test_all.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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"): -- cgit v1.2.3