File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,14 @@ def test_get_osfhandle(self):
6161
6262
6363class TestConsoleIO (unittest .TestCase ):
64+ @requires_resource ('gui' ) # CREATE_NEW_CONSOLE will creates a "popup" window.
6465 def run_in_separated_process (self , code ):
6566 # Run test in a seprated process to avoid stdin conflicts.
6667 # See: gh-110147
6768 cmd = [sys .executable , '-c' , code ]
6869 subprocess .run (cmd , check = True , capture_output = True ,
6970 creationflags = subprocess .CREATE_NEW_CONSOLE )
7071
71-
72- @requires_resource ('gui' )
7372 def test_kbhit (self ):
7473 code = dedent ('''
7574 import msvcrt
@@ -91,15 +90,13 @@ def check_getwch(self, funcname):
9190 ''' )
9291 self .run_in_separated_process (code )
9392
94- @requires_resource ('gui' )
9593 def test_getwch (self ):
9694 self .check_getwch ('getwch' )
9795
9896 def test_getche (self ):
9997 msvcrt .ungetch (b'c' )
10098 self .assertEqual (msvcrt .getche (), b'c' )
10199
102- @requires_resource ('gui' )
103100 def test_getwche (self ):
104101 self .check_getwch ('getwche' )
105102
You can’t perform that action at this time.
0 commit comments