[3.6] bpo-33629: Prevent coredump in test_importlib (GH-7090) by miss-islington · Pull Request #7102 · python/cpython
python
Expand Up
@@ -275,10 +275,13 @@ def test_bad_traverse(self):
(Multiphase initialization modules only) ''' script = """if True: from test import support import importlib.util as util spec = util.find_spec('_testmultiphase') spec.name = '_testmultiphase_with_bad_traverse' m = spec.loader.create_module(spec)""" with support.SuppressCrashReport(): m = spec.loader.create_module(spec)""" assert_python_failure("-c", script) Expand Down