[Python-Dev] test_pep277 vs Win98

Tim Peters tim.one@comcast.net
Fri, 04 Oct 2002 21:23:12 -0400


The newish test_pep277 fails on Win98SE, then leaves behind a directory
named @test that causes 4 later tests to fail for bogus reasons.

Anyone know whether this test is supposed to work <wink>?  Mark, Martin?

C:\Code\python\PCbuild>python ../lib/test/test_pep277.py
test_directory (__main__.UnicodeFileTests) ... ERROR
test_failures (__main__.UnicodeFileTests) ... ERROR
test_listdir (__main__.UnicodeFileTests) ... ERROR
test_open (__main__.UnicodeFileTests) ... ERROR
test_rename (__main__.UnicodeFileTests) ... ERROR

======================================================================
ERROR: test_directory (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../lib/test/test_pep277.py", line 31, in setUp
    f = open(name, 'w')
IOError: [Errno 2] No such file or directory: '@test\\Ge??-sa?'

======================================================================
ERROR: test_failures (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../lib/test/test_pep277.py", line 31, in setUp
    f = open(name, 'w')
IOError: [Errno 2] No such file or directory: '@test\\Ge??-sa?'

======================================================================
ERROR: test_listdir (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../lib/test/test_pep277.py", line 31, in setUp
    f = open(name, 'w')
IOError: [Errno 2] No such file or directory: '@test\\Ge??-sa?'

======================================================================
ERROR: test_open (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../lib/test/test_pep277.py", line 31, in setUp
    f = open(name, 'w')
IOError: [Errno 2] No such file or directory: '@test\\Ge??-sa?'

======================================================================
ERROR: test_rename (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "../lib/test/test_pep277.py", line 31, in setUp
    f = open(name, 'w')
IOError: [Errno 2] No such file or directory: '@test\\Ge??-sa?'

----------------------------------------------------------------------
Ran 5 tests in 0.270s

FAILED (errors=5)
Traceback (most recent call last):
  File "../lib/test/test_pep277.py", line 106, in ?
    test_main()
  File "../lib/test/test_pep277.py", line 103, in test_main
    run_suite(suite)
  File "C:\CODE\PYTHON\lib\test\test_support.py", line 187, in run_suite
    raise TestFailed(msg)
test.test_support.TestFailed: errors occurred; run in verbose mode for
details

C:\Code\python\PCbuild>