We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad41ad commit f970118Copy full SHA for f970118
1 file changed
Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py
@@ -857,9 +857,9 @@ def test_run_failed_module_live(self):
857
mock.patch('sys.stderr', new=io.StringIO()) as fake_stderr
858
):
859
main()
860
- self.assertStartsWith(
861
- fake_stderr.getvalue(),
862
- '\x1b[31mtest test_asdasd crashed -- Traceback (most recent call last):'
+ self.assertIn(
+ 'test test_asdasd crashed -- Traceback (most recent call last):',
+ fake_stderr.getvalue()
863
)
864
865
def test_run_failed_script_live(self):
@@ -888,7 +888,7 @@ def test_run_failed_script_live(self):
888
889
self.assertEndsWith(
890
stderr,
891
- 'ZeroDivisionError\x1b[0m: \x1b[35mdivision by zero\x1b[0m\n\n'
+ 'ZeroDivisionError: division by zero\n\n'
892
893
894
0 commit comments