File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 33if sys .platform == "linux" : # pragma: no cover
44 import os
55
6- # from io import IOBase
7-
86 class WrapStdinLinux :
97 def __init__ (self ):
108 fd = os .open ("/dev/tty" , os .O_RDWR | os .O_NOCTTY )
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ def __getattr__(self, key):
2626 return "UTF-8"
2727 return getattr (self .tty , key )
2828
29- def __del__ (self ):
30- self .tty .close ()
31-
32- # backup_event_loop = None
3329 backup_event_loop_policy = None
3430 backup_stdin = None
3531 backup_stdout = None
Original file line number Diff line number Diff line change 22
33from commitizen import wrap_stdio
44
5- # def test_warp_stdio_exists():
6- # assert hasattr(wrap_stdio_windows, "sys")
7- # assert hasattr(wrap_stdio_linux, "sys")
8- # assert hasattr(wrap_stdio_unix, "sys")
9-
10-
115if sys .platform == "win32" : # pragma: no cover
126 pass
137elif sys .platform == "linux" :
@@ -56,7 +50,6 @@ def test_wrap_stdout_linux(mocker):
5650 readerwriter_mock ().write .assert_called_with ("stderr" )
5751
5852 wrap_stdio .unwrap_stdio ()
59-
6053 assert sys .stdout == tmp_stdout
6154 assert sys .stderr == tmp_stderr
6255
You can’t perform that action at this time.
0 commit comments