Commit d4299698 authored by Stefan Behnel's avatar Stefan Behnel

Include Windows DLL suffix pattern in coverage file search.

parent 644e693c
...@@ -107,7 +107,7 @@ class Plugin(CoveragePlugin): ...@@ -107,7 +107,7 @@ class Plugin(CoveragePlugin):
if ext in ('.py', '.pyx', '.pxd', '.c', '.cpp'): if ext in ('.py', '.pyx', '.pxd', '.c', '.cpp'):
pass pass
elif ext in ('.so', '.pyd'): elif ext in ('.so', '.pyd'):
platform_suffix = re.search(r'[.]cpython-[0-9]+[a-z]*$', basename, re.I) platform_suffix = re.search(r'[.]cp(?:ython-[0-9]+[a-z]*|[0-9]+-win[_a-z0-9]*)$', basename, re.I)
if platform_suffix: if platform_suffix:
basename = basename[:platform_suffix.start()] basename = basename[:platform_suffix.start()]
elif ext == '.pxi': elif ext == '.pxi':
......
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