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_errno fails with unexpected error value EREMOTEIO #46650
Comments
Running test_errno on my 32-bit Ubuntu Gutsy machine gives me this: $ ./python Lib/test/test_errno.py
test_for_improper_attributes (__main__.ErrnoAttributeTests) ... FAIL
test_using_errorcode (__main__.ErrnoAttributeTests) ... ok
test_attributes_in_errorcode (__main__.ErrorcodeTests) ... ok ====================================================================== Traceback (most recent call last):
File "Lib/test/test_errno.py", line 46, in test_for_improper_attributes
"%s is an unexpected error value" % attribute)
AssertionError: EREMOTEIO is an unexpected error value Ran 3 tests in 0.001s FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_errno.py", line 68, in <module>
test_main()
File "Lib/test/test_errno.py", line 64, in test_main
test_support.run_unittest(ErrnoAttributeTests, ErrorcodeTests)
File "/home/andy/cvs/python/Lib/test/test_support.py", line 573, in
run_unittest
_run_suite(suite)
File "/home/andy/cvs/python/Lib/test/test_support.py", line 556, in
_run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_errno.py", line 46, in test_for_improper_attributes
"%s is an unexpected error value" % attribute)
AssertionError: EREMOTEIO is an unexpected error value I've attached a patch which changes test_errno.py so that its list of I don't know whether this is the right solution, but the patch is there Apologies if I've misunderstood something, or formatted the patch wrong |
Thanks for the patch, Andy, but I went ahead and fixed test_errno to |
Adding Brett Cannon since it looks like his checkin created the test |
Woah! fast response, and what looks like a much more sensible fix. |
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: