We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ad5fd commit 2b02431Copy full SHA for 2b02431
Lib/test/test_pyrepl/test_pyrepl.py
@@ -11,6 +11,7 @@
11
from unittest.mock import patch
12
from test.support import force_not_colorized
13
from test.support import SHORT_TIMEOUT
14
+from test.support.import_helper import import_module
15
from test.support.os_helper import unlink
16
17
from .support import (
@@ -902,6 +903,9 @@ def test_python_basic_repl(self):
902
903
self.assertNotIn("Traceback", output)
904
905
def test_not_wiping_history_file(self):
906
+ # skip, if readline module is not available
907
+ import_module('readline')
908
+
909
hfile = tempfile.NamedTemporaryFile(delete=False)
910
self.addCleanup(unlink, hfile.name)
911
env = os.environ.copy()
0 commit comments