Commit 426558a9 authored by Denis Bilenko's avatar Denis Bilenko

greentest/helper.py: when import failed, raise the original import error

parent eb68f261
......@@ -40,8 +40,7 @@ def prepare_stdlib_test(filename):
except:
if version in missing_modules.get(name, []):
sys.exit(0)
else:
sys.exit('ModuleNotFoundError: test.%s' % name)
raise
module = getattr(package, name)
_filename = module.__file__.replace('.pyc', '.py')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment