-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
android: test_faulthandler fails also on API 24 #76319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
bpo-26934 skipped some tests of test_faulthandler on Android API < 24 to fix the problem that python does not crash upon _sigsegv(). But the same problem occurs on API 24 except randomly, you need to run test_faulthandler many times before reproducing it, see below few results in that case. I propose to skip those tests whatever the value of the Android API level. 1 test failed: generic_x86_64:/data/local/tmp/python $ python -m test test_faulthandler
Run tests sequentially
0:00:00 [1/1] test_faulthandler
test test_faulthandler failed -- Traceback (most recent call last):
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 265, in test_enable_file
filename=filename)
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 114, in check_fatal_error
self.check_error(code, line_number, fatal_error, **kw)
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 107, in check_error
output, exitcode = self.get_output(code, filename=filename, fd=fd)
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 67, in get_output
self.assertEqual(output, '')
AssertionError: "sys:1: ResourceWarning: unclosed file <_[49 chars]c3'>" != ''
- sys:1: ResourceWarning: unclosed file <_io.BufferedWriter name='/data/local/tmp/tmp17fv9xc3'>
+ ====================================================================== Traceback (most recent call last):
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 307, in test_disable
self.assertNotEqual(exitcode, 0)
AssertionError: 0 == 0 ====================================================================== Traceback (most recent call last):
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 252, in test_gil_released
'Segmentation fault')
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 114, in check_fatal_error
self.check_error(code, line_number, fatal_error, **kw)
File "/sdcard/org.python/lib/python3.7/test/test_faulthandler.py", line 110, in check_error
self.assertNotEqual(exitcode, 0)
AssertionError: 0 == 0 |
Works for me. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: