mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
More robust stdio forwarding in tests
This commit is contained in:
@@ -113,7 +113,9 @@ def run_cli(suite: unittest.TestSuite, verbosity: int = 4) -> bool:
|
||||
r.resultclass = unittest.TextTestResult
|
||||
runner = r(verbosity=verbosity)
|
||||
runner.tb_locals = True # type: ignore
|
||||
result = runner.run(suite)
|
||||
from . import forwardable_stdio
|
||||
with forwardable_stdio():
|
||||
result = runner.run(suite)
|
||||
return result.wasSuccessful()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user