Skip to content

Commit 77a7baa

Browse files
committed
XXX skip test_not_wiping_history_file() if pyrepl can't be used
1 parent e358963 commit 77a7baa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,8 @@ def test_not_wiping_history_file(self):
909909
env.update({"PYTHON_HISTORY": hfile.name})
910910
commands = "123\nspam\nexit()\n"
911911
output, exit_code = self.run_repl(commands, env=env)
912+
if "can\'t use pyrepl" in output:
913+
self.skipTest("pyrepl not available")
912914
self.assertEqual(exit_code, 0)
913915
self.assertIn("123", output)
914916
self.assertIn("spam", output)

0 commit comments

Comments
 (0)