From: Robert Bradshaw Date: Fri, 14 Jan 2011 08:50:22 +0000 (-0800) Subject: Get GDB tests running. X-Git-Tag: 0.14.1rc0~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed5f9e3913491ad8cc2e022932167d7c66d36b13;p=cython.git Get GDB tests running. --- 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)