fix: auto fixes

This commit is contained in:
pre-commit-ci[bot] 2024-03-13 01:29:51 +00:00
parent 9935d56964
commit f77b1e0ba3

View file

@ -149,17 +149,20 @@ class Helper:
) )
var python_path = output[0].strip_edges() var python_path = output[0].strip_edges()
var exit_code = OS.execute( var exit_code = (
python_path, OS
[ . execute(
"-c", python_path,
( [
"import struct, fcntl, termios; print(struct.unpack('HH', fcntl.ioctl(%d, termios.TIOCGWINSZ, '1234')))" "-c",
% fd (
) "import struct, fcntl, termios; print(struct.unpack('HH', fcntl.ioctl(%d, termios.TIOCGWINSZ, '1234')))"
], % fd
true, )
output ],
true,
output
)
) )
assert(exit_code == 0, "Failed to run python command for this test.") assert(exit_code == 0, "Failed to run python command for this test.")