Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py3k unit tests are removing %TEMP% dir on Windows #45811

Closed
tiran opened this issue Nov 20, 2007 · 5 comments
Closed

py3k unit tests are removing %TEMP% dir on Windows #45811

tiran opened this issue Nov 20, 2007 · 5 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@tiran
Copy link
Member

tiran commented Nov 20, 2007

BPO 1470
Nosy @loewis, @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-11-20.01:49:17.419>
created_at = <Date 2007-11-20.00:13:13.763>
labels = ['type-bug']
title = 'py3k unit tests are removing %TEMP% dir on Windows'
updated_at = <Date 2008-01-06.22:29:45.060>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:45.060>
actor = 'admin'
assignee = 'none'
closed = True
closed_date = <Date 2007-11-20.01:49:17.419>
closer = 'christian.heimes'
components = []
creation = <Date 2007-11-20.00:13:13.763>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 1470
keywords = []
message_count = 5.0
messages = ['57672', '57679', '57682', '57688', '57689']
nosy_count = 2.0
nosy_names = ['loewis', 'christian.heimes']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1470'
versions = ['Python 2.6', 'Python 3.0']

@tiran
Copy link
Member Author

tiran commented Nov 20, 2007

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.

@tiran tiran added the type-bug An unexpected behavior, bug, or error label Nov 20, 2007
@tiran
Copy link
Member Author

tiran commented Nov 20, 2007

I may have nailed down the issue to test_shutil.test_copytree_simple

@tiran
Copy link
Member Author

tiran commented Nov 20, 2007

My bad, os.removedirs is removing all parent directories until it hits a
non empty dir.

Fixed in r59063 and r59064

@tiran tiran closed this as completed Nov 20, 2007
@loewis
Copy link
Mannequin

loewis mannequin commented Nov 20, 2007

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

@tiran
Copy link
Member Author

tiran commented Nov 20, 2007

Thanks, I've changed the code slightly.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant