-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Unicode File Test failures (PEP 277 on Mac OS X) #52427
Comments
I'm *assuming* this is a Mac OS X issue. (10.6.2) ./python.exe Lib/test/test_pep277.py ====================================================================== Traceback (most recent call last):
File "Lib/test/test_pep277.py", line 92, in test_listdir
self.assertEqual(sf2, set(self.files))
AssertionError: Items in the first set but not the second:
u'@test_969_tmp/\u0393\u03b5\u03b9\u03b1\u0301-\u03c3\u03b1\u03c2'
u'@test_969_tmp/Gru\u0308\xdf-Gott'
u'@test_969_tmp/\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0438\u0306\u0442\u0435'
u'@test_969_tmp/\u306b\u307b\u309a\u3093'
Items in the second set but not the first:
u'@test_969_tmp/\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2'
u'@test_969_tmp/\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435'
u'@test_969_tmp/Gr\xfc\xdf-Gott'
u'@test_969_tmp/\u306b\u307d\u3093' Ran 5 tests in 0.021s FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_pep277.py", line 120, in <module>
test_main()
File "Lib/test/test_pep277.py", line 115, in test_main
test_support.run_unittest(UnicodeFileTests)
File "/compile/python-back/Lib/test/test_support.py", line 1031, in run_unittest
_run_suite(suite)
File "/compile/python-back/Lib/test/test_support.py", line 1014, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_pep277.py", line 92, in test_listdir
self.assertEqual(sf2, set(self.files))
AssertionError: Items in the first set but not the second:
u'@test_969_tmp/\u0393\u03b5\u03b9\u03b1\u0301-\u03c3\u03b1\u03c2'
u'@test_969_tmp/Gru\u0308\xdf-Gott'
u'@test_969_tmp/\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0438\u0306\u0442\u0435'
u'@test_969_tmp/\u306b\u307b\u309a\u3093'
Items in the second set but not the first:
u'@test_969_tmp/\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2'
u'@test_969_tmp/\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435'
u'@test_969_tmp/Gr\xfc\xdf-Gott'
u'@test_969_tmp/\u306b\u307d\u3093' |
r78585 to test_pep277.py recently enabled this test for all POSIX systems but note the warning in r33595. |
This patch should fix the test on OS X platforms. |
A patch with more Unicode normalization tests. Could you test it on Windows or Mac OS X? |
The test passes with the first patch applied (darwin.diff). With the second patch applied I get two failures: ====================================================================== Traceback (most recent call last):
File "Lib/test/test_pep277.py", line 121, in test_normalize
os.stat(name)
OSError: [Errno 2] No such file or directory: '@test_70346_tmp/\xc2\xa8\xcc\x81\xc2\xb4\xe3\x8f\x95' ====================================================================== Traceback (most recent call last):
File "Lib/test/test_pep277.py", line 145, in test_listdir
self.assertEqual(len(f1), len(self.files))
AssertionError: 18 != 19 Ran 30 tests in 0.292s FAILED (failures=1, errors=1)
Traceback (most recent call last):
File "Lib/test/test_pep277.py", line 198, in <module>
test_main()
File "Lib/test/test_pep277.py", line 191, in test_main
UnicodeNFKDFileTests,
File "/compile/python-trunk/Lib/test/test_support.py", line 1031, in run_unittest
_run_suite(suite)
File "/compile/python-trunk/Lib/test/test_support.py", line 1014, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: multiple errors occurred |
New patch: removed the offending codepoint '\ufad1'. |
New patch, fixing test_listdir on OS X (hopefully). |
Fixed with r79207 (2.x) and r79209 (3.x). |
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: