Skip to content

Commit 09eeac8

Browse files
committed
No need to pass "NO_COLOR" to run_pty()
"NO_COLOR" only affects color for the `sqlite>` prompt, it does not help for disabling color of completion prefix.
1 parent 276b4a7 commit 09eeac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_sqlite3/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def test_nothing_to_complete(self):
240240
from sqlite3.__main__ import main; main()
241241
""")
242242
input = b"zzzz\t;\n.quit\n"
243-
output = run_pty(script, input, env={"NO_COLOR": "1"})
243+
output = run_pty(script, input)
244244
for keyword in KEYWORDS:
245245
self.assertNotRegex(output, rf"\b{keyword}\b".encode("utf-8"))
246246

@@ -251,7 +251,7 @@ def test_completion_order(self):
251251
from sqlite3.__main__ import main; main()
252252
""")
253253
input = b"S\t;\n.quit\n"
254-
output = run_pty(script, input, env={"NO_COLOR": "1"})
254+
output = run_pty(script, input)
255255
savepoint_idx = output.find(b"SAVEPOINT")
256256
select_idx = output.find(b"SELECT")
257257
set_idx = output.find(b"SET")

0 commit comments

Comments
 (0)