Skip to content

Commit e9803c3

Browse files
committed
install_aliases(): anticipate the absence of test.test_support on Py2 (issue #109)
This seems to be missing on some installations.
1 parent adac5f3 commit e9803c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/future/standard_library/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,11 @@ def install_aliases():
482482
import test
483483
except ImportError:
484484
pass
485-
else:
485+
try:
486486
from future.moves.test import support
487+
except ImportError:
488+
pass
489+
else:
487490
test.support = support
488491
sys.modules['test.support'] = support
489492

0 commit comments

Comments
 (0)