[Python-Dev] test_pep277 vs Win98 (original) (raw)
Delaney, Timothy tdelaney@avaya.com
Tue, 8 Oct 2002 10:39:58 +1000
- Previous message: [Python-Dev] Re: [win32] Killing MSVC's _alloca
- Next message: [Python-Dev] RELEASED: Python 2.2.2b1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: martin@v.loewis.de [mailto:martin@v.loewis.de]
Tim Peters <tim.one@comcast.net> writes: > > Furthermore, how would I implement os.path.supportsunicodefilenames > > for ntpath? It seems that something must be exported from os. > > This sounds like, for now, whether a platform supports this or not is a > matter of hand-forcing a config symbol, where only a few Windows flavors are > currently justified in saying "yup, works here". Repeating my question: How can I hand-force a config symbol to True on NT+ and to False on W9x?
Sounds like an exceptional situation to me.
try: try to use problem filename(s) yup_works_here = True except IOError: # or whatever is appropriate yup_works_here = False
The test cases then simply test that it works for all cases
Tim Delaney
- Previous message: [Python-Dev] Re: [win32] Killing MSVC's _alloca
- Next message: [Python-Dev] RELEASED: Python 2.2.2b1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]