From ed5f9e3913491ad8cc2e022932167d7c66d36b13 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 14 Jan 2011 00:50:22 -0800 Subject: [PATCH] Get GDB tests running. --- runtests.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/runtests.py b/runtests.py index 645ec244..0fbf6c16 100644 --- a/runtests.py +++ b/runtests.py @@ -675,11 +675,6 @@ class CythonPyregrTestCase(CythonRunTestCase): except (unittest.SkipTest, support.ResourceDenied): result.addSkip(self, 'ok') -# Someone wrapped this in a: -# 'try: import gdb; ... except: include_debugger = False' thing, but don't do -# this, it doesn't work as gdb is a builtin module in GDB. The tests themselves -# are doing the skipping. If there's a problem with the tests, please file an -# issue. include_debugger = sys.version_info[:2] > (2, 5) def collect_unittests(path, module_prefix, suite, selectors): @@ -750,6 +745,9 @@ def collect_doctests(path, module_prefix, suite, selectors): modulename = module_prefix + filepath[len(path)+1:].replace(os.path.sep, '.') if not [ 1 for match in selectors if match(modulename) ]: continue + if 'in_gdb' in modulename: + # These should only be imported from gdb. + continue module = __import__(modulename) for x in modulename.split('.')[1:]: module = getattr(module, x) -- 2.26.2