Skip to content

Commit f9bab0a

Browse files
duanegvstinner
andauthored
Update Lib/test/mp_preload_flush.py
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent db298cb commit f9bab0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/mp_preload_flush.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
p = multiprocessing.Process()
1111
p.start()
1212
p.join()
13-
else:
14-
assert modname in sys.modules
13+
elif modname not in sys.modules:
14+
raise AssertionError(f'{modname!r} is not in sys.modules')

0 commit comments

Comments
 (0)