[Python-Dev] Tests broken on Windows

Tim Peters tim.peters at gmail.com
Sun Oct 31 20:27:18 CET 2004

Current test_shutil is apparently trying to do something that can't
work on Windows, so it fails:

test test_shutil failed -- Traceback (most recent call last):
  File "C:\Code\python\lib\test\test_shutil.py", line 28, in test_on_error
    shutil.rmtree(TESTFN, onerror=self.check_args_to_onerror)
  File "C:\Code\python\lib\shutil.py", line 168, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\Code\python\lib\test\test_shutil.py", line 36, in
    self.assertEqual(func, os.remove)
AssertionError: <built-in function rmdir> != <built-in function remove>

1 test failed:

After that, it leaves behind temp directories that cause other tests
to fail.  Sorry, I've got other problems on my stack, and can't make
time for this one.

More information about the Python-Dev mailing list