@@ -1730,6 +1730,7 @@ def check_killed(self, returncode):
17301730 else :
17311731 self .assertEqual (- signal .SIGKILL , returncode )
17321732
1733+ @support .requires_subprocess ()
17331734 def test_subprocess_exec (self ):
17341735 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
17351736
@@ -1750,6 +1751,7 @@ def test_subprocess_exec(self):
17501751 self .check_killed (proto .returncode )
17511752 self .assertEqual (b'Python The Winner' , proto .data [1 ])
17521753
1754+ @support .requires_subprocess ()
17531755 def test_subprocess_interactive (self ):
17541756 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
17551757
@@ -1777,6 +1779,7 @@ def test_subprocess_interactive(self):
17771779 self .loop .run_until_complete (proto .completed )
17781780 self .check_killed (proto .returncode )
17791781
1782+ @support .requires_subprocess ()
17801783 def test_subprocess_shell (self ):
17811784 connect = self .loop .subprocess_shell (
17821785 functools .partial (MySubprocessProtocol , self .loop ),
@@ -1793,6 +1796,7 @@ def test_subprocess_shell(self):
17931796 self .assertEqual (proto .data [2 ], b'' )
17941797 transp .close ()
17951798
1799+ @support .requires_subprocess ()
17961800 def test_subprocess_exitcode (self ):
17971801 connect = self .loop .subprocess_shell (
17981802 functools .partial (MySubprocessProtocol , self .loop ),
@@ -1804,6 +1808,7 @@ def test_subprocess_exitcode(self):
18041808 self .assertEqual (7 , proto .returncode )
18051809 transp .close ()
18061810
1811+ @support .requires_subprocess ()
18071812 def test_subprocess_close_after_finish (self ):
18081813 connect = self .loop .subprocess_shell (
18091814 functools .partial (MySubprocessProtocol , self .loop ),
@@ -1817,6 +1822,7 @@ def test_subprocess_close_after_finish(self):
18171822 self .assertEqual (7 , proto .returncode )
18181823 self .assertIsNone (transp .close ())
18191824
1825+ @support .requires_subprocess ()
18201826 def test_subprocess_kill (self ):
18211827 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
18221828
@@ -1833,6 +1839,7 @@ def test_subprocess_kill(self):
18331839 self .check_killed (proto .returncode )
18341840 transp .close ()
18351841
1842+ @support .requires_subprocess ()
18361843 def test_subprocess_terminate (self ):
18371844 prog = os .path .join (os .path .dirname (__file__ ), 'echo.py' )
18381845
@@ -1850,6 +1857,7 @@ def test_subprocess_terminate(self):
18501857 transp .close ()
18511858
18521859 @unittest .skipIf (sys .platform == 'win32' , "Don't have SIGHUP" )
1860+ @support .requires_subprocess ()
18531861 def test_subprocess_send_signal (self ):
18541862 # bpo-31034: Make sure that we get the default signal handler (killing
18551863 # the process). The parent process may have decided to ignore SIGHUP,
@@ -1873,6 +1881,7 @@ def test_subprocess_send_signal(self):
18731881 finally :
18741882 signal .signal (signal .SIGHUP , old_handler )
18751883
1884+ @support .requires_subprocess ()
18761885 def test_subprocess_stderr (self ):
18771886 prog = os .path .join (os .path .dirname (__file__ ), 'echo2.py' )
18781887
@@ -1894,6 +1903,7 @@ def test_subprocess_stderr(self):
18941903 self .assertTrue (proto .data [2 ].startswith (b'ERR:test' ), proto .data [2 ])
18951904 self .assertEqual (0 , proto .returncode )
18961905
1906+ @support .requires_subprocess ()
18971907 def test_subprocess_stderr_redirect_to_stdout (self ):
18981908 prog = os .path .join (os .path .dirname (__file__ ), 'echo2.py' )
18991909
@@ -1918,6 +1928,7 @@ def test_subprocess_stderr_redirect_to_stdout(self):
19181928 transp .close ()
19191929 self .assertEqual (0 , proto .returncode )
19201930
1931+ @support .requires_subprocess ()
19211932 def test_subprocess_close_client_stream (self ):
19221933 prog = os .path .join (os .path .dirname (__file__ ), 'echo3.py' )
19231934
@@ -1951,6 +1962,7 @@ def test_subprocess_close_client_stream(self):
19511962 self .loop .run_until_complete (proto .completed )
19521963 self .check_killed (proto .returncode )
19531964
1965+ @support .requires_subprocess ()
19541966 def test_subprocess_wait_no_same_group (self ):
19551967 # start the new process in a new session
19561968 connect = self .loop .subprocess_shell (
@@ -1963,6 +1975,7 @@ def test_subprocess_wait_no_same_group(self):
19631975 self .assertEqual (7 , proto .returncode )
19641976 transp .close ()
19651977
1978+ @support .requires_subprocess ()
19661979 def test_subprocess_exec_invalid_args (self ):
19671980 async def connect (** kwds ):
19681981 await self .loop .subprocess_exec (
@@ -1976,6 +1989,7 @@ async def connect(**kwds):
19761989 with self .assertRaises (ValueError ):
19771990 self .loop .run_until_complete (connect (shell = True ))
19781991
1992+ @support .requires_subprocess ()
19791993 def test_subprocess_shell_invalid_args (self ):
19801994
19811995 async def connect (cmd = None , ** kwds ):
0 commit comments