diff options
Diffstat (limited to 'lib_pypy/_testmultiphase.py')
-rw-r--r-- | lib_pypy/_testmultiphase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_pypy/_testmultiphase.py b/lib_pypy/_testmultiphase.py index e10e9996f5..d24cdea434 100644 --- a/lib_pypy/_testmultiphase.py +++ b/lib_pypy/_testmultiphase.py @@ -4,13 +4,13 @@ import os try: import cpyext except ImportError: - raise ImportError("No module named '_testmultiphase'") + raise ModuleNotFoundError("No module named '_testmultiphase'", name='_testmultiphase') import _pypy_testcapi cfile = '_testmultiphase.c' thisdir = os.path.dirname(__file__) output_dir = _pypy_testcapi.get_hashed_dir(os.path.join(thisdir, cfile)) try: - fp, filename, description = imp.find_module('_test_multiphase', path=[output_dir]) + fp, filename, description = imp.find_module('_testmultiphase', path=[output_dir]) with fp: imp.load_module('_testmultiphase', fp, filename, description) except ImportError: |