File tree 3 files changed +0
-13
lines changed
3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 3
3
if sys .platform == "linux" : # pragma: no cover
4
4
import os
5
5
6
- # from io import IOBase
7
-
8
6
class WrapStdinLinux :
9
7
def __init__ (self ):
10
8
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):
26
26
return "UTF-8"
27
27
return getattr (self .tty , key )
28
28
29
- def __del__ (self ):
30
- self .tty .close ()
31
-
32
- # backup_event_loop = None
33
29
backup_event_loop_policy = None
34
30
backup_stdin = None
35
31
backup_stdout = None
Original file line number Diff line number Diff line change 2
2
3
3
from commitizen import wrap_stdio
4
4
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
-
11
5
if sys .platform == "win32" : # pragma: no cover
12
6
pass
13
7
elif sys .platform == "linux" :
@@ -56,7 +50,6 @@ def test_wrap_stdout_linux(mocker):
56
50
readerwriter_mock ().write .assert_called_with ("stderr" )
57
51
58
52
wrap_stdio .unwrap_stdio ()
59
-
60
53
assert sys .stdout == tmp_stdout
61
54
assert sys .stderr == tmp_stderr
62
55
You can’t perform that action at this time.
0 commit comments