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
Got a 113 error when running the test_socket #81764
Comments
When I run test_socket.py, I got a error. Looks it's a problem of security group. ====================================================================== Traceback (most recent call last):
File "/home/shihai/workspace/cpython/Lib/test/test_socket.py", line 4961, in test_create_connection
self.assertIn(cm.exception.errno, expected_errnos)
AssertionError: 113 not found in [111, 101, 99, 97] Ran 814 tests in 25.929s FAILED (failures=1, errors=117, skipped=197) |
Victor handled similar errors in bpo-36629 where this helper was introduced. |
So I add this 113 error in |
Can you copy/paste the full output of test_socket, or better: of the whole test suite? Put it in a file and attach it to the issue. |
sure, i copied the full output of test_socket. more failed test case looks like need add two property functions. |
ping :) |
I don't understand such error: ====================================================================== Traceback (most recent call last):
File "/home/shihai/workspace/cpython/Lib/test/test_socket.py", line 2649, in setUp
self.serv_sock.settimeout(self.fail_timeout)
AttributeError: 'SendmsgTests' object has no attribute 'serv_sock' |
Oh, sorry, victor. I use ./python -m unittest xxx before. Updating the test result again. |
Thanks Hai Shi for the bug report and the fix. It's now fixd in 3.7, 3.8 and master branches. First I understood that you wanted to modify transient_internet() which is used in many places. Fixing support.get_socket_conn_refused_errs() is fine, it's only used in 2 test functions. I don't think that it's worth it to fix Python 2.7 (which doesn't have get_socket_conn_refused_errs() function but build errno list directly in test_socket). |
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: