Commit 68c1f3de authored by Ralf Schmitt's avatar Ralf Schmitt

greentest/helper.py: py.test uses absolute pathnames of .pyc files as filename. handle that case.

parent af92c58e
......@@ -48,7 +48,7 @@ def prepare_stdlib_test(filename):
raise
test_support.use_resources = ContainsAll()
name = filename.replace('_patched', '').replace('.py', '')
name = os.path.splitext(os.path.basename(filename))[0].replace('_patched', '')
os.environ['__module_name__'] = name
......
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