File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -156,11 +156,15 @@ def test_init(self):
156
156
157
157
def test_auto_history_enabled (self ):
158
158
output = run_pty (self .auto_history_script .format (True ))
159
- self .assertIn (b"History length: 1\r \n " , output )
159
+ # bpo-44949: Sometimes, the newline character is not written at the
160
+ # end, so don't expect it in the output.
161
+ self .assertIn (b"History length: 1" , output )
160
162
161
163
def test_auto_history_disabled (self ):
162
164
output = run_pty (self .auto_history_script .format (False ))
163
- self .assertIn (b"History length: 0\r \n " , output )
165
+ # bpo-44949: Sometimes, the newline character is not written at the
166
+ # end, so don't expect it in the output.
167
+ self .assertIn (b"History length: 0" , output )
164
168
165
169
def test_nonascii (self ):
166
170
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