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 ff962db commit 6d0656eCopy full SHA for 6d0656e
1 file changed
Lib/test/test_pyrepl/test_pyrepl.py
@@ -1740,8 +1740,10 @@ def test_history_survive_crash(self):
1740
self.assertIn("2", history)
1741
self.assertIn("exit()", history)
1742
self.assertIn("spam", history)
1743
- self.assertIn("0xcafe", history)
1744
self.assertIn("import time", history)
+ # History is written after each command's output is printed to the
1745
+ # console, so depending on how quickly the process is killed,
1746
+ # the last command may or may not be written to the history file.
1747
self.assertNotIn("sleep", history)
1748
self.assertNotIn("quit", history)
1749
0 commit comments