@@ -1799,6 +1799,7 @@ def check_killed(self, returncode):
17991799 else :
18001800 self .assertEqual (- signal .SIGKILL , returncode )
18011801
1802+ @support .requires_subprocess ()
18021803 def test_subprocess_exec (self ):
18031804 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
18041805
@@ -1820,6 +1821,7 @@ def test_subprocess_exec(self):
18201821 self .check_killed (proto .returncode )
18211822 self .assertEqual (b'Python The Winner' , proto .data [1 ])
18221823
1824+ @support .requires_subprocess ()
18231825 def test_subprocess_interactive (self ):
18241826 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
18251827
@@ -1847,6 +1849,7 @@ def test_subprocess_interactive(self):
18471849 self .loop .run_until_complete (proto .completed )
18481850 self .check_killed (proto .returncode )
18491851
1852+ @support .requires_subprocess ()
18501853 def test_subprocess_shell (self ):
18511854 connect = self .loop .subprocess_shell (
18521855 functools .partial (MySubprocessProtocol , self .loop ),
@@ -1863,6 +1866,7 @@ def test_subprocess_shell(self):
18631866 self .assertEqual (proto .data [2 ], b'' )
18641867 transp .close ()
18651868
1869+ @support .requires_subprocess ()
18661870 def test_subprocess_exitcode (self ):
18671871 connect = self .loop .subprocess_shell (
18681872 functools .partial (MySubprocessProtocol , self .loop ),
@@ -1874,6 +1878,7 @@ def test_subprocess_exitcode(self):
18741878 self .assertEqual (7 , proto .returncode )
18751879 transp .close ()
18761880
1881+ @support .requires_subprocess ()
18771882 def test_subprocess_close_after_finish (self ):
18781883 connect = self .loop .subprocess_shell (
18791884 functools .partial (MySubprocessProtocol , self .loop ),
@@ -1888,6 +1893,7 @@ def test_subprocess_close_after_finish(self):
18881893 self .assertEqual (7 , proto .returncode )
18891894 self .assertIsNone (transp .close ())
18901895
1896+ @support .requires_subprocess ()
18911897 def test_subprocess_kill (self ):
18921898 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
18931899
@@ -1904,6 +1910,7 @@ def test_subprocess_kill(self):
19041910 self .check_killed (proto .returncode )
19051911 transp .close ()
19061912
1913+ @support .requires_subprocess ()
19071914 def test_subprocess_terminate (self ):
19081915 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
19091916
@@ -1921,6 +1928,7 @@ def test_subprocess_terminate(self):
19211928 transp .close ()
19221929
19231930 @unittest .skipIf (sys .platform == 'win32' , "Don't have SIGHUP" )
1931+ @support .requires_subprocess ()
19241932 def test_subprocess_send_signal (self ):
19251933 # bpo-31034: Make sure that we get the default signal handler (killing
19261934 # the process). The parent process may have decided to ignore SIGHUP,
@@ -1945,6 +1953,7 @@ def test_subprocess_send_signal(self):
19451953 finally :
19461954 signal .signal (signal .SIGHUP , old_handler )
19471955
1956+ @support .requires_subprocess ()
19481957 def test_subprocess_stderr (self ):
19491958 prog = os .path .join (os .path .dirname (__file__ ), 'echo2.py' )
19501959
@@ -1966,6 +1975,7 @@ def test_subprocess_stderr(self):
19661975 self .assertTrue (proto .data [2 ].startswith (b'ERR:test' ), proto .data [2 ])
19671976 self .assertEqual (0 , proto .returncode )
19681977
1978+ @support .requires_subprocess ()
19691979 def test_subprocess_stderr_redirect_to_stdout (self ):
19701980 prog = os .path .join (os .path .dirname (__file__ ), 'echo2.py' )
19711981
@@ -1991,6 +2001,7 @@ def test_subprocess_stderr_redirect_to_stdout(self):
19912001 transp .close ()
19922002 self .assertEqual (0 , proto .returncode )
19932003
2004+ @support .requires_subprocess ()
19942005 def test_subprocess_close_client_stream (self ):
19952006 prog = os .path .join (os .path .dirname (__file__ ), 'echo3.py' )
19962007
@@ -2025,6 +2036,7 @@ def test_subprocess_close_client_stream(self):
20252036 self .loop .run_until_complete (proto .completed )
20262037 self .check_killed (proto .returncode )
20272038
2039+ @support .requires_subprocess ()
20282040 def test_subprocess_wait_no_same_group (self ):
20292041 # start the new process in a new session
20302042 connect = self .loop .subprocess_shell (
@@ -2037,6 +2049,7 @@ def test_subprocess_wait_no_same_group(self):
20372049 self .assertEqual (7 , proto .returncode )
20382050 transp .close ()
20392051
2052+ @support .requires_subprocess ()
20402053 def test_subprocess_exec_invalid_args (self ):
20412054 async def connect (** kwds ):
20422055 await self .loop .subprocess_exec (
@@ -2050,6 +2063,7 @@ async def connect(**kwds):
20502063 with self .assertRaises (ValueError ):
20512064 self .loop .run_until_complete (connect (shell = True ))
20522065
2066+ @support .requires_subprocess ()
20532067 def test_subprocess_shell_invalid_args (self ):
20542068
20552069 async def connect (cmd = None , ** kwds ):
0 commit comments