Skip to content

Commit cdcdda0

Browse files
committed
Supply ModuleNotFoundError for Python 3.5.
1 parent ad6ffd4 commit cdcdda0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

distutils/tests/py38compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# flake8: noqa
22

33
import contextlib
4+
import builtins
5+
6+
ModuleNotFoundError = getattr(builtins, 'ModuleNotFoundError', ImportError)
47

58
try:
69
from test.support.warnings_helper import check_warnings

0 commit comments

Comments
 (0)