======================================================================
FAIL: test_run_failed_module_live (test.test_profiling.test_sampling_profiler.test_live_collector_ui.TestLiveModeErrors.test_run_failed_module_live)
Test that running a existing module that fails exits with clean error.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 859, in test_run_failed_module_live
self.assertIn(
~~~~~~~~~~~~~^
'test test_asdasd crashed -- Traceback (most recent call last):',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fake_stderr.getvalue()
^^^^^^^^^^^^^^^^^^^^^^
)
^
AssertionError: 'test test_asdasd crashed -- Traceback (most recent call last):' not found in ''
======================================================================
FAIL: test_run_failed_script_live (test.test_profiling.test_sampling_profiler.test_live_collector_ui.TestLiveModeErrors.test_run_failed_script_live)
Test that running a failing script exits with clean error.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 885, in test_run_failed_script_live
self.assertIn('ZeroDivisionError', stderr)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'ZeroDivisionError' not found in ''
----------------------------------------------------------------------
Bug report
Python is built with
./configure --without-pymalloc --with-address-sanitizer.ASAN_OPTIONS=detect_leaks=0:allocator_may_return_null=1:handle_segv=0env var is used to build Python and run the test suite.