Commit e1aab098 authored by Stefan Behnel's avatar Stefan Behnel

Save "cache_builtins" option in test runner to make it changeable in tests.

parent eb036319
...@@ -878,7 +878,13 @@ class CythonCompileTestCase(unittest.TestCase): ...@@ -878,7 +878,13 @@ class CythonCompileTestCase(unittest.TestCase):
from Cython.Compiler import Options from Cython.Compiler import Options
self._saved_options = [ self._saved_options = [
(name, getattr(Options, name)) (name, getattr(Options, name))
for name in ('warning_errors', 'clear_to_none', 'error_on_unknown_names', 'error_on_uninitialized') for name in (
'warning_errors',
'clear_to_none',
'error_on_unknown_names',
'error_on_uninitialized',
'cache_builtins',
)
] ]
self._saved_default_directives = list(Options.get_directive_defaults().items()) self._saved_default_directives = list(Options.get_directive_defaults().items())
Options.warning_errors = self.warning_errors Options.warning_errors = self.warning_errors
......
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