A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-October/029336.html below:

[Python-Dev] test_pep277 vs Win98

[Python-Dev] test_pep277 vs Win98 [Python-Dev] test_pep277 vs Win98Delaney, 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4