Commit a41131cf authored by Stefan Behnel's avatar Stefan Behnel

exclude Cython.Tempita package from coverage analysis

parent 3c3e4564
......@@ -1932,12 +1932,15 @@ def runtests(options, cmd_args, coverage=None):
for name in ('Version', 'DebugFlags', 'CmdLine')) | set(
'Cython.' + name
for name in ('Debugging',))
modules = [module for name, module in sys.modules.items()
ignored_packages = ['Cython.Runtime', 'Cython.Tempita']
modules = [
module for name, module in sys.modules.items()
if module is not None and
name.startswith('Cython.') and
'.Tests' not in name and
name not in ignored_modules and
not name.startswith('Cython.Runtime')]
not any(name.startswith(package) for package in ignored_packages)
]
if options.coverage:
coverage.report(modules, show_missing=0)
if options.coverage_xml:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment