Skip to content

Commit 47494a4

Browse files
committed
Pass exec to executor.map
1 parent 359ae9a commit 47494a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_struct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ def test_endian_table_init_subinterpreters(self):
810810

811811
code = "import struct"
812812
with InterpreterPoolExecutor(max_workers=5) as executor:
813-
results = executor.map(exec(code), [code] * 5)
813+
results = executor.map(exec, [code] * 5)
814814
self.assertListEqual(list(results), [None] * 5)
815815

816816

0 commit comments

Comments
 (0)