8000
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 60ea4d6 commit 4d62380Copy full SHA for 4d62380
Lib/test/test_readline.py
@@ -113,6 +113,14 @@ def test_write_read_append(self):
113
# write_history_file can create the target
114
readline.write_history_file(hfilename)
115
116
+ # Negative values should be disallowed
117
+ with self.assertRaises(ValueError):
118
+ readline.append_history_file(-42, hfilename)
119
+
120
+ # See gh-122431, using the minumum signed integer value caused a segfault
121
122
+ readline.append_history_file(-2147483648, hfilename)
123
124
def test_nonascii_history(self):
125
readline.clear_history()
126
try:
0 commit comments