Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf4d78a

Browse filesBrowse files
authored
do not copy config dict
1 parent daac381 commit bf4d78a
Copy full SHA for bf4d78a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Lib/test/test_capi/test_misc.py

Copy file name to clipboardExpand all lines: Lib/test/test_capi/test_misc.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,9 +2317,9 @@ def run(type_checker, obj):
23172317
exec(script)
23182318
for name in ('legacy', 'isolated'):
23192319
with self.subTest(name):
2320-
config = dict(_interpreters.new_config(name).__dict__)
2321-
config['gil'] = {'shared': 1, 'own': 2}[config['gil']]
2322-
ret = support.run_in_subinterp_with_config(script, **config)
2320+
config = _interpreters.new_config(name)
2321+
config.gil = {'shared': 1, 'own': 2}[config.gil]
2322+
ret = support.run_in_subinterp_with_config(script, **config.__dict__)
23232323
self.assertEqual(ret, 0)
23242324

23252325

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.