-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
test_readline: test_auto_history_disabled() fails randomly on aarch64 RHEL8 Refleaks 3.9, 3.10 and 3.x #89112
Comments
test_readline fails randomly on aarc64 RHEL8 buildbots (3.9, 3.10 and 3.x). In some builds, test_readline fails but then pass when re-run in verbose mode. Example: aarch64 RHEL8 Refleaks 3.9: test.pythoninfo: readline._READLINE_LIBRARY_VERSION: 7.0 Tests: 0:33:57 load avg: 0.93 Re-running test_readline in verbose mode (matching: test_auto_history_disabled) Traceback (most recent call last):
File "/home/buildbot/buildarea/3.9.cstratak-RHEL8-aarch64.refleak/build/Lib/test/test_readline.py", line 154, in test_auto_history_disabled
self.assertIn(b"History length: 0\r\n", output)
AssertionError: b'History length: 0\r\n' not found in bytearray(b'dummy input\r\ndummy input\r\nHistory length: 0') |
I failed to reproduce the issue on Fedora 34 (readline-8.1-2.fc34.i686). $ ./python -m test test_readline -m test_auto_history_disabled -j40 -F
(...)
0:19:35 load avg: 42.40 [10785] test_readline passed
0:19:35 load avg: 42.40 [10786] test_readline passed
0:19:35 load avg: 42.40 [10787] test_readline passed
^C
Test suite interrupted by signal SIGINT.
10787 tests OK.
Total duration: 19 min 36 sec
$ ./python -m test test_readline -j40 -F
(...)
0:03:30 load avg: 41.07 [1330] test_readline passed
0:03:31 load avg: 41.07 [1331] test_readline passed
^C
1331 tests OK.
Total duration: 3 min 31 sec
Tests result: INTERRUPTED |
I ran the test manually on the buildbot worker. Sometimes, the test process gets the EIO error even before getting the 2 newline bytes (b"\r\n"). I wrote PR 27813 to simply not expect the newline character. Adding flush=True to the print("History length:", readline.get_current_history_length()) call in the Python script doesn't fix the issue. |
Similar issue in test_readline.test_nonascii(): bpo-45195. |
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: