summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-03-30 20:37:03 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-03-31 10:53:03 +0200
commite1aab098e87b53cf36947189f272959e46060bd6 (patch)
tree7134e75f29a10e76752c3fbf5bdbf4b5d2966d45
parenteb036319e44c28fdd73cfc97433b7132f9cb2d74 (diff)
downloadcython-e1aab098e87b53cf36947189f272959e46060bd6.tar.gz
Save "cache_builtins" option in test runner to make it changeable in tests.
-rwxr-xr-xruntests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py
index 654302ecd..732053fb9 100755
--- a/runtests.py
+++ b/runtests.py
@@ -878,7 +878,13 @@ class CythonCompileTestCase(unittest.TestCase):
from Cython.Compiler import Options
self._saved_options = [
(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())
Options.warning_errors = self.warning_errors