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 1143894 commit 68e279bCopy full SHA for 68e279b
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