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/2004-October/049718.html below:

[Python-Dev] Tests broken on Windows

[Python-Dev] Tests broken on WindowsJohannes Gijsbers jlg at dds.nl
Sun Oct 31 20:52:18 CET 2004
On Sun, Oct 31, 2004 at 02:27:18PM -0500, Tim Peters wrote:
> Current test_shutil is apparently trying to do something that can't
> work on Windows, so it fails:
> 
> test_shutil
> 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
> check_args_to_onerror
>     self.assertEqual(func, os.remove)
> AssertionError: <built-in function rmdir> != <built-in function remove>
> 
> 1 test failed:
>     test_shutil

Hum, I didn't realize os.chmod() worked this differently on Windows. Seems like
I bumped into bug #755617 (os module: Need a better description of "mode"). Per
that bug, I googled for '_chmod msdn' and came up with the attached patch.
However, I don't have a Windows machine handy to test. Could someone with a
Windows machine try the patch?

Cheers,

Johannes
More information about the Python-Dev mailing list

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