mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
bpo-45195: Fix test_readline.test_nonascii() (GH-28329)
Fix test_readline.test_nonascii(): sometimes, the newline character is not written at the end, so don't expect it in the output.
This commit is contained in:
parent
7f60c9e1c6
commit
797c8eb9ef
|
@ -255,7 +255,9 @@ def display(substitution, matches, longest_match_length):
|
|||
self.assertIn(b"matches ['t\\xebnt', 't\\xebxt']\r\n", output)
|
||||
expected = br"'[\xefnserted]|t\xebxt[after]'"
|
||||
self.assertIn(b"result " + expected + b"\r\n", output)
|
||||
self.assertIn(b"history " + expected + b"\r\n", output)
|
||||
# bpo-45195: Sometimes, the newline character is not written at the
|
||||
# end, so don't expect it in the output.
|
||||
self.assertIn(b"history " + expected, output)
|
||||
|
||||
# We have 2 reasons to skip this test:
|
||||
# - readline: history size was added in 6.0
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Fix test_readline.test_nonascii(): sometimes, the newline character is not
|
||||
written at the end, so don't expect it in the output. Patch by Victor
|
||||
Stinner.
|
Loading…
Reference in a new issue