We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9d5c8 commit b2e6e69Copy full SHA for b2e6e69
1 file changed
Lib/test/test_concurrent_futures/test_interpreter_pool.py
@@ -485,11 +485,18 @@ def test_import_interpreter_pool_executor(self):
485
sys.exit(1)
486
487
from concurrent.futures import *
488
+
489
+ if 'InterpreterPoolExecutor' in globals():
490
+ print('InterpreterPoolExecutor should not be imported!',
491
+ file=sys.stderr)
492
+ sys.exit(1)
493
""")
494
495
cmd = [sys.executable, '-c', code]
496
p = subprocess.run(cmd, capture_output=True)
497
self.assertEqual(p.returncode, 0, p.stderr.decode())
498
+ self.assertEqual(p.stdout.decode(), '')
499
+ self.assertEqual(p.stderr.decode(), '')
500
501
502
class AsyncioTest(InterpretersMixin, testasyncio_utils.TestCase):
0 commit comments