Issue 1470: py3k unit tests are removing %TEMP% dir on Windows (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/45811

classification

Title: py3k unit tests are removing %TEMP% dir on Windows
Type: behavior Stage:
Components: Versions: Python 3.0, Python 2.6

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, loewis
Priority: critical Keywords:

Created on 2007-11-20 00:13 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg57672 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-20 00:13
The unit test suite of py3k is removing the official %TEMP% directory of Windows. It's not only causing errors in the test suite but also creating havoc with other apps. I'm not sure if it is related to my PCbuild9 or some changes to the unit test suite. Since the update to VS 2008 I can't build the PCbuild any more due to some .NET problems with Nant.
msg57679 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-20 01:14
I may have nailed down the issue to test_shutil.test_copytree_simple
msg57682 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-20 01:49
My bad, os.removedirs is removing all parent directories until it hits a non empty dir. Fixed in r59063 and r59064
msg57688 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-11-20 03:07
It seems that this patch has broken a lot of buildbots, e.g. http://www.python.org/dev/buildbot/all/x86%20gentoo%20trunk/builds/2625/step-test/0
msg57689 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-20 03:21
Thanks, I've changed the code slightly.
History
Date User Action Args
2022-04-11 14:56:28 admin set github: 45811
2008-01-06 22:29:45 admin set keywords: - py3kversions: Python 2.6, Python 3.0
2007-11-20 03:21:40 christian.heimes set messages: +
2007-11-20 03:07:25 loewis set nosy: + loewismessages: +
2007-11-20 01:49:17 christian.heimes set status: open -> closedresolution: fixedmessages: + versions: + Python 2.6
2007-11-20 01:14:26 christian.heimes set messages: +
2007-11-20 00:13:13 christian.heimes create