diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-09-30 22:33:12 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-09-30 22:33:12 +0200 |
commit | 1cc011c641148b2d084639889ae759066e2d935e (patch) | |
tree | c4f6400f1a409596c180b08a1bbf164987f7741c | |
parent | bc4acfe0bb1c0ec8e9d617ed61545013632ca49c (diff) | |
download | cython-1cc011c641148b2d084639889ae759066e2d935e.tar.gz |
fix test
-rw-r--r-- | tests/run/coverage_api.srctree | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/coverage_api.srctree b/tests/run/coverage_api.srctree index fa93e5e4c..a9473fe14 100644 --- a/tests/run/coverage_api.srctree +++ b/tests/run/coverage_api.srctree @@ -93,7 +93,7 @@ for module in [coverage_test_py, coverage_test_pyx, coverage_test_include_pyx]: def source_file_for(module): module_name = module.__name__ path, ext = os.path.splitext(module.__file__) - platform_suffix = re.search(r'[.]cpython-[0-9]+[a-z]*$', path, re.I) + platform_suffix = re.search(r'[.](?:cpython|pypy)-[0-9]+[^.]*$', path, re.I) if platform_suffix: path = path[:platform_suffix.start()] return path + '.' + module_name.rsplit('_', 1)[-1] |