Skip to content

Commit ff962db

Browse files
committed
Assert 0xcafe in output and use default timeout
1 parent 26e3877 commit ff962db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,14 +1732,15 @@ def test_history_survive_crash(self):
17321732
# process to simulate a crash. Note that the output also includes
17331733
# the echoed input commands.
17341734
commands = "spam\nimport time\n0xcafe\ntime.sleep(1000)\nquit\n"
1735-
output, exit_code = self.run_repl(commands, env=env, timeout=3,
1735+
output, exit_code = self.run_repl(commands, env=env,
17361736
exit_on_output="51966")
17371737
self.assertNotEqual(exit_code, 0)
17381738

17391739
history = pathlib.Path(hfile.name).read_text()
17401740
self.assertIn("2", history)
17411741
self.assertIn("exit()", history)
17421742
self.assertIn("spam", history)
1743+
self.assertIn("0xcafe", history)
17431744
self.assertIn("import time", history)
17441745
self.assertNotIn("sleep", history)
17451746
self.assertNotIn("quit", history)

0 commit comments

Comments
 (0)