Martin von Loewis: Re: Quest: Re: Locale breakage on alpha
Guido van Rossum <[email protected]> Tue, 18 Mar 2003 07:21:30 -0500
| Newsgroups | gmane.comp.python.snake-farm.user |
|---|---|
| Message-ID | <[email protected]> |
------- Forwarded Message Date: Tue, 18 Mar 2003 07:49:18 +0100 From: Martin von Loewis <[email protected]> To: [email protected] (Guido van Rossum) cc: [email protected], [email protected] Subject: Re: Quest: Re: [snake-farm] Locale breakage on alpha > Are you following the snake-farm list? This problem seems in your > area... No, I'm not. > try: > TESTFN_ENCODED = TESTFN_UNICODE.encode(TESTFN_ENCODING) > except (ImportError, TypeError): > # Either the file system encoding is None, or the file name > # cannot be encoded in the file system encoding. > raise TestSkipped("No Unicode filesystem semantics on this platform.") > > Maybe the UnicodeEncodeError should be caught here instead (in > addition)? Indeed, UnicodeError should be caught instead of ImportError. LookupError is not supposed to happen, since Python verifies at startup that the encoding is supported. Regards, Martin ------- End of Forwarded Message