Commit 29d47eda authored by Stefan Behnel's avatar Stefan Behnel

set initial __file__ value in pyregr test modules

parent 8e1db2a3
...@@ -902,7 +902,9 @@ class CythonPyregrTestCase(CythonRunTestCase): ...@@ -902,7 +902,9 @@ class CythonPyregrTestCase(CythonRunTestCase):
CythonRunTestCase.setUp(self) CythonRunTestCase.setUp(self)
from Cython.Compiler import Options from Cython.Compiler import Options
Options.error_on_unknown_names = False Options.error_on_unknown_names = False
Options.directive_defaults.update(dict(binding=True, always_allow_keywords=True)) Options.directive_defaults.update(dict(
binding=True, always_allow_keywords=True,
set_initial_path="SOURCEFILE"))
def _run_unittest(self, result, *classes): def _run_unittest(self, result, *classes):
"""Run tests from unittest.TestCase-derived classes.""" """Run tests from unittest.TestCase-derived classes."""
......
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