@@ -32,12 +32,6 @@ def _kill_python_and_exit_code(p):
3232    return  data , returncode 
3333
3434
35- b_deprecation_msg  =  (
36-     '-b option is deprecated since Python 3.15 ' 
37-     'and will be removed in Python 3.17' 
38- )
39- 
40- 
4135class  CmdLineTest (unittest .TestCase ):
4236    def  test_directories (self ):
4337        assert_python_failure ('.' )
@@ -712,7 +706,7 @@ def run_xdev(self, *args, check_exitcode=True, xdev=True):
712706                              env = env )
713707        if  check_exitcode :
714708            self .assertEqual (proc .returncode , 0 , proc )
715-         return  self . maybe_remove_b_deprecation_msg ( proc .stdout )
709+         return  proc .stdout . rstrip ( )
716710
717711    @support .cpython_only  
718712    def  test_xdev (self ):
@@ -795,22 +789,7 @@ def check_warnings_filters(self, cmdline_option, envvar, use_pywarning=False):
795789                              universal_newlines = True ,
796790                              env = env )
797791        self .assertEqual (proc .returncode , 0 , proc )
798-         return  self .maybe_remove_b_deprecation_msg (proc .stdout )
799- 
800-     def  maybe_remove_b_deprecation_msg (self , output ):
801-         return  output .replace (b_deprecation_msg  +  '\n ' , '' ).rstrip ()
802- 
803-     def  test_b_deprecation_msg_stderr (self ):
804-         for  arg  in  ['-b' , '-bb' ]:
805-             with  self .subTest (arg = arg ):
806-                 args  =  (sys .executable , arg , '-c' , '' )
807-                 proc  =  subprocess .run (args ,
808-                                       stdout = subprocess .PIPE ,
809-                                       stderr = subprocess .PIPE ,
810-                                       universal_newlines = True )
811-                 self .assertEqual (proc .returncode , 0 , proc )
812-                 self .assertEqual (proc .stdout , '' )
813-                 self .assertEqual (proc .stderr .rstrip (), b_deprecation_msg )
792+         return  proc .stdout .rstrip ()
814793
815794    def  test_warnings_filter_precedence (self ):
816795        expected_filters  =  ("error::BytesWarning " 
0 commit comments