We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc1e1b3 commit de78e04Copy full SHA for de78e04
1 file changed
tests/test_base.py
@@ -133,6 +133,10 @@ def test_lambda_in_REPL(): # noqa: N802
133
after = buffer.getvalue()
134
print(after) # noqa: T201
135
print('------------') # noqa: T201
136
+ after = re.compile(r'(?:\x1B[@-_]|\x9B)[0-?]*[ -/]*[@-~]').sub('', after.lstrip(before))
137
+ after = ''.join(ch for ch in after if ch >= ' ' or ch in '\n\r\t')
138
+ print(after) # noqa: T201
139
+ print('------------') # noqa: T201
140
after = after.lstrip(before)
141
142
0 commit comments