File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,15 @@ def test_init(self):
147
147
148
148
def test_auto_history_enabled (self ):
149
149
output = run_pty (self .auto_history_script .format (True ))
150
- self .assertIn (b"History length: 1\r \n " , output )
150
+ # bpo-44949: Sometimes, the newline character is not written at the
151
+ # end, so don't expect it in the output.
152
+ self .assertIn (b"History length: 1" , output )
151
153
152
154
def test_auto_history_disabled (self ):
153
155
output = run_pty (self .auto_history_script .format (False ))
154
- self .assertIn (b"History length: 0\r \n " , output )
156
+ # bpo-44949: Sometimes, the newline character is not written at the
157
+ # end, so don't expect it in the output.
158
+ self .assertIn (b"History length: 0" , output )
155
159
156
160
def test_nonascii (self ):
157
161
loc = locale .setlocale (locale .LC_CTYPE , None )
Original file line number Diff line number Diff line change
1
+ Fix auto history tests of test_readline: sometimes, the newline character is
2
+ not written at the end, so don't expect it in the output.
You can’t perform that action at this time.
0 commit comments