File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Lib/test/test_profiling/test_sampling_profiler Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -857,9 +857,9 @@ def test_run_failed_module_live(self):
857857 mock .patch ('sys.stderr' , new = io .StringIO ()) as fake_stderr
858858 ):
859859 main ()
860- self .assertStartsWith (
861- fake_stderr . getvalue () ,
862- ' \x1b [31mtest test_asdasd crashed -- Traceback (most recent call last):'
860+ self .assertIn (
861+ 'test test_asdasd crashed -- Traceback (most recent call last):' ,
862+ fake_stderr . getvalue ()
863863 )
864864
865865 def test_run_failed_script_live (self ):
@@ -888,7 +888,7 @@ def test_run_failed_script_live(self):
888888 )
889889 self .assertEndsWith (
890890 stderr ,
891- 'ZeroDivisionError\x1b [0m: \x1b [35mdivision by zero\x1b [0m \n \n '
891+ 'ZeroDivisionError: division by zero\n \n '
892892 )
893893
894894
You can’t perform that action at this time.
0 commit comments