This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年03月20日 02:56 by michael.foord, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue8180_pep277_darwin.diff | flox, 2010年03月20日 10:53 | Patch, apply to 2.x | ||
| issue8180_pep277_additions_v3.diff | flox, 2010年03月21日 17:24 | Patch, apply to 2.x | ||
| Messages (8) | |||
|---|---|---|---|
| msg101361 - (view) | Author: Michael Foord (michael.foord) * (Python committer) | Date: 2010年03月20日 02:56 | |
I'm *assuming* this is a Mac OS X issue. (10.6.2) ./python.exe Lib/test/test_pep277.py test_directory (__main__.UnicodeFileTests) ... ok test_failures (__main__.UnicodeFileTests) ... ok test_listdir (__main__.UnicodeFileTests) ... FAIL test_open (__main__.UnicodeFileTests) ... ok test_rename (__main__.UnicodeFileTests) ... ok ====================================================================== FAIL: test_listdir (__main__.UnicodeFileTests) ---------------------------------------------------------------------- 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' |
|||
| msg101366 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2010年03月20日 06:17 | |
r78585 to test_pep277.py recently enabled this test for all POSIX systems but note the warning in r33595. |
|||
| msg101370 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月20日 10:53 | |
This patch should fix the test on OS X platforms. |
|||
| msg101375 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月20日 15:54 | |
A patch with more Unicode normalization tests. Could you test it on Windows or Mac OS X? |
|||
| msg101409 - (view) | Author: Michael Foord (michael.foord) * (Python committer) | Date: 2010年03月20日 23:28 | |
The test passes with the first patch applied (darwin.diff). With the second patch applied I get two failures: ====================================================================== ERROR: test_normalize (__main__.UnicodeFileTests) ---------------------------------------------------------------------- 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' ====================================================================== FAIL: test_listdir (__main__.UnicodeFileTests) ---------------------------------------------------------------------- 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 |
|||
| msg101429 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月21日 15:57 | |
New patch: removed the offending codepoint '\ufad1'. Please try again on OS X, and windows. |
|||
| msg101433 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月21日 17:24 | |
New patch, fixing test_listdir on OS X (hopefully). |
|||
| msg101443 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月21日 18:53 | |
Fixed with r79207 (2.x) and r79209 (3.x). Thank you Michael for testing it. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:58 | admin | set | github: 52427 |
| 2010年03月21日 18:53:36 | flox | set | status: open -> closed resolution: accepted -> fixed messages: + msg101443 stage: patch review -> resolved |
| 2010年03月21日 17:24:24 | flox | set | files:
+ issue8180_pep277_additions_v3.diff messages: + msg101433 |
| 2010年03月21日 17:23:29 | flox | set | files: - issue8180_pep277_additions_v2.diff |
| 2010年03月21日 15:57:27 | flox | set | files:
+ issue8180_pep277_additions_v2.diff messages: + msg101429 |
| 2010年03月21日 15:50:59 | flox | set | files: - issue8180_pep277_additions.diff |
| 2010年03月20日 23:28:06 | michael.foord | set | messages: + msg101409 |
| 2010年03月20日 15:55:44 | flox | set | nosy:
+ brett.cannon |
| 2010年03月20日 15:54:54 | flox | set | files:
+ issue8180_pep277_additions.diff messages: + msg101375 |
| 2010年03月20日 10:53:50 | flox | set | files:
+ issue8180_pep277_darwin.diff resolution: accepted keywords: + patch stage: needs patch -> patch review versions: + Python 3.2 nosy: ronaldoussoren, ned.deily, michael.foord, flox messages: + msg101370 priority: normal components: + macOS, Unicode type: behavior |
| 2010年03月20日 06:17:21 | ned.deily | set | nosy:
+ ned.deily, flox messages: + msg101366 |
| 2010年03月20日 02:56:27 | michael.foord | set | stage: needs patch versions: + Python 2.7 |
| 2010年03月20日 02:56:01 | michael.foord | create | |