@@ -3518,6 +3518,7 @@ def test_getppid(self):
35183518 self .assertEqual (error , b'' )
35193519 self .assertEqual (int (stdout ), os .getpid ())
35203520
3521+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
35213522 def check_waitpid (self , code , exitcode , callback = None ):
35223523 if sys .platform == 'win32' :
35233524 # On Windows, os.spawnv() simply joins arguments with spaces:
@@ -3620,30 +3621,35 @@ def create_args(self, *, with_env=False, use_bytes=False):
36203621
36213622 return program , args
36223623
3624+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36233625 @requires_os_func ('spawnl' )
36243626 def test_spawnl (self ):
36253627 program , args = self .create_args ()
36263628 exitcode = os .spawnl (os .P_WAIT , program , * args )
36273629 self .assertEqual (exitcode , self .exitcode )
36283630
3631+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36293632 @requires_os_func ('spawnle' )
36303633 def test_spawnle (self ):
36313634 program , args = self .create_args (with_env = True )
36323635 exitcode = os .spawnle (os .P_WAIT , program , * args , self .env )
36333636 self .assertEqual (exitcode , self .exitcode )
36343637
3638+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36353639 @requires_os_func ('spawnlp' )
36363640 def test_spawnlp (self ):
36373641 program , args = self .create_args ()
36383642 exitcode = os .spawnlp (os .P_WAIT , program , * args )
36393643 self .assertEqual (exitcode , self .exitcode )
36403644
3645+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36413646 @requires_os_func ('spawnlpe' )
36423647 def test_spawnlpe (self ):
36433648 program , args = self .create_args (with_env = True )
36443649 exitcode = os .spawnlpe (os .P_WAIT , program , * args , self .env )
36453650 self .assertEqual (exitcode , self .exitcode )
36463651
3652+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36473653 @requires_os_func ('spawnv' )
36483654 def test_spawnv (self ):
36493655 program , args = self .create_args ()
@@ -3654,49 +3660,57 @@ def test_spawnv(self):
36543660 exitcode = os .spawnv (os .P_WAIT , FakePath (program ), args )
36553661 self .assertEqual (exitcode , self .exitcode )
36563662
3663+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36573664 @requires_os_func ('spawnve' )
36583665 def test_spawnve (self ):
36593666 program , args = self .create_args (with_env = True )
36603667 exitcode = os .spawnve (os .P_WAIT , program , args , self .env )
36613668 self .assertEqual (exitcode , self .exitcode )
36623669
3670+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36633671 @requires_os_func ('spawnvp' )
36643672 def test_spawnvp (self ):
36653673 program , args = self .create_args ()
36663674 exitcode = os .spawnvp (os .P_WAIT , program , args )
36673675 self .assertEqual (exitcode , self .exitcode )
36683676
3677+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36693678 @requires_os_func ('spawnvpe' )
36703679 def test_spawnvpe (self ):
36713680 program , args = self .create_args (with_env = True )
36723681 exitcode = os .spawnvpe (os .P_WAIT , program , args , self .env )
36733682 self .assertEqual (exitcode , self .exitcode )
36743683
3684+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36753685 @requires_os_func ('spawnv' )
36763686 def test_nowait (self ):
36773687 program , args = self .create_args ()
36783688 pid = os .spawnv (os .P_NOWAIT , program , args )
36793689 support .wait_process (pid , exitcode = self .exitcode )
36803690
3691+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36813692 @requires_os_func ('spawnve' )
36823693 def test_spawnve_bytes (self ):
36833694 # Test bytes handling in parse_arglist and parse_envlist (#28114)
36843695 program , args = self .create_args (with_env = True , use_bytes = True )
36853696 exitcode = os .spawnve (os .P_WAIT , program , args , self .env )
36863697 self .assertEqual (exitcode , self .exitcode )
36873698
3699+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36883700 @requires_os_func ('spawnl' )
36893701 def test_spawnl_noargs (self ):
36903702 program , __ = self .create_args ()
36913703 self .assertRaises (ValueError , os .spawnl , os .P_NOWAIT , program )
36923704 self .assertRaises (ValueError , os .spawnl , os .P_NOWAIT , program , '' )
36933705
3706+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
36943707 @requires_os_func ('spawnle' )
36953708 def test_spawnle_noargs (self ):
36963709 program , __ = self .create_args ()
36973710 self .assertRaises (ValueError , os .spawnle , os .P_NOWAIT , program , {})
36983711 self .assertRaises (ValueError , os .spawnle , os .P_NOWAIT , program , '' , {})
36993712
3713+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
37003714 @requires_os_func ('spawnv' )
37013715 def test_spawnv_noargs (self ):
37023716 program , __ = self .create_args ()
@@ -3705,6 +3719,7 @@ def test_spawnv_noargs(self):
37053719 self .assertRaises (ValueError , os .spawnv , os .P_NOWAIT , program , ('' ,))
37063720 self .assertRaises (ValueError , os .spawnv , os .P_NOWAIT , program , ['' ])
37073721
3722+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
37083723 @requires_os_func ('spawnve' )
37093724 def test_spawnve_noargs (self ):
37103725 program , __ = self .create_args ()
@@ -3761,10 +3776,12 @@ def _test_invalid_env(self, spawn):
37613776 exitcode = spawn (os .P_WAIT , program , args , newenv )
37623777 self .assertEqual (exitcode , 0 )
37633778
3779+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
37643780 @requires_os_func ('spawnve' )
37653781 def test_spawnve_invalid_env (self ):
37663782 self ._test_invalid_env (os .spawnve )
37673783
3784+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
37683785 @requires_os_func ('spawnvpe' )
37693786 def test_spawnvpe_invalid_env (self ):
37703787 self ._test_invalid_env (os .spawnvpe )
@@ -4881,6 +4898,7 @@ def test_posix_pty_functions(self):
48814898 self .addCleanup (os .close , son_fd )
48824899 self .assertEqual (os .ptsname (mother_fd ), os .ttyname (son_fd ))
48834900
4901+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
48844902 @unittest .skipUnless (hasattr (os , 'spawnl' ), "need os.spawnl()" )
48854903 @support .requires_subprocess ()
48864904 def test_pipe_spawnl (self ):
0 commit comments