Ensure subprocess gets a fresh warnings module · python/cpython@39200c3 · GitHub
Skip to content

Commit 39200c3

Browse files
committed
Ensure subprocess gets a fresh warnings module
While CPython doesn't implicitly import `warnings` at startup, some other implementations might do so. Explicitly clearing the module cache ensures the subprocess also gets the pure Python version, no matter what.
1 parent 50abc69 commit 39200c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_warnings/__init__.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)