Permalink
Browse files

test runner: disable gdb testing/usage in PyPy

  • Loading branch information...
1 parent db7d8c7 commit 426cf1b704258a512be93794cd40582ecd6cad87 @scoder scoder committed Aug 28, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 runtests.py
View
@@ -16,6 +16,14 @@
import warnings
try:
+ import platform
+ IS_PYPY = platform.python_implementation() == 'PyPy'
+ IS_CPYTHON = platform.python_implementation() == 'CPython'
+except (ImportError, AttributeError):
+ IS_CPYTHON = True
+ IS_PYPY = False
+
+try:
from StringIO import StringIO
except ImportError:
from io import StringIO
@@ -949,7 +957,7 @@ def run_doctest(module, verbosity=None):
run_forked_test(result, run_test, self.shortDescription(), self.fork)
-include_debugger = sys.version_info[:2] > (2, 5)
+include_debugger = IS_CPYTHON and sys.version_info[:2] > (2, 5)
def collect_unittests(path, module_prefix, suite, selectors, exclude_selectors):
def file_matches(filename):

0 comments on commit 426cf1b

Please sign in to comment.