mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
gh-146004: fix test_args_from_interpreter_flags on windows (#146580)
This commit is contained in:
parent
1fd66eadd2
commit
1af025dd22
1 changed files with 6 additions and 1 deletions
|
|
@ -577,7 +577,6 @@ def test_args_from_interpreter_flags(self):
|
|||
['-X', 'int_max_str_digits=1000'],
|
||||
['-X', 'lazy_imports=all'],
|
||||
['-X', 'no_debug_ranges'],
|
||||
['-X', 'pycache_prefix=/tmp/pycache'],
|
||||
['-X', 'showrefcount'],
|
||||
['-X', 'tracemalloc'],
|
||||
['-X', 'tracemalloc=3'],
|
||||
|
|
@ -586,6 +585,12 @@ def test_args_from_interpreter_flags(self):
|
|||
with self.subTest(opts=opts):
|
||||
self.check_options(opts, 'args_from_interpreter_flags')
|
||||
|
||||
with os_helper.temp_dir() as temp_path:
|
||||
prefix = os.path.join(temp_path, 'pycache')
|
||||
opts = ['-X', f'pycache_prefix={prefix}']
|
||||
with self.subTest(opts=opts):
|
||||
self.check_options(opts, 'args_from_interpreter_flags')
|
||||
|
||||
self.check_options(['-I', '-E', '-s', '-P'],
|
||||
'args_from_interpreter_flags',
|
||||
['-I'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue