[Python-Dev] test_pep277 vs Win98

Delaney, Timothy tdelaney@avaya.com
Tue, 8 Oct 2002 10:39:58 +1000


> From: martin@v.loewis.de [mailto:martin@v.loewis.de]
> 
> Tim Peters <tim.one@comcast.net> writes:
> 
> > > Furthermore, how would I implement 
> os.path.supports_unicode_filenames
> > > 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