Skip to content

Commit d164877

Browse files
committed
filter for turning off automatic margins in test_no_newline
1 parent 68fcb95 commit d164877

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,13 @@ def test_no_newline(self):
18991899
safe_patterns.append(r'\x1b\[\?25[hl]') # cursor visibility
19001900
safe_patterns.append(r'\x1b\[\?12[hl]') # cursor blinking
19011901

1902+
# rmam - turn off automatic margins
1903+
rmam = ti.get("rmam")
1904+
if rmam:
1905+
safe_patterns.append(re.escape(rmam.decode("ascii")))
1906+
else:
1907+
safe_patterns.append(r'\x1b\[\?7l')
1908+
19021909
# Modern extensions not in standard terminfo - always use patterns
19031910
safe_patterns.append(r'\x1b\[\?2004[hl]') # bracketed paste mode
19041911
safe_patterns.append(r'\x1b\[\?12[hl]') # cursor blinking (may be separate)

0 commit comments

Comments
 (0)