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

trace fails when test imported a temporary file #55200

Closed
brettcannon opened this issue Jan 23, 2011 · 4 comments
Closed

trace fails when test imported a temporary file #55200

brettcannon opened this issue Jan 23, 2011 · 4 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@brettcannon
Copy link
Member

BPO 10991
Nosy @brettcannon

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 2019-05-14.04:15:47.691>
created_at = <Date 2011-01-23.23:31:12.014>
labels = ['type-bug', 'library']
title = 'trace fails when test imported a temporary file'
updated_at = <Date 2019-05-14.04:15:47.690>
user = 'https://github.com/brettcannon'

bugs.python.org fields:

activity = <Date 2019-05-14.04:15:47.690>
actor = 'brett.cannon'
assignee = 'none'
closed = True
closed_date = <Date 2019-05-14.04:15:47.691>
closer = 'brett.cannon'
components = ['Library (Lib)']
creation = <Date 2011-01-23.23:31:12.014>
creator = 'brett.cannon'
dependencies = []
files = []
hgrepos = []
issue_num = 10991
keywords = []
message_count = 4.0
messages = ['126909', '223220', '342316', '342427']
nosy_count = 2.0
nosy_names = ['brett.cannon', 'SilentGhost']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue10991'
versions = ['Python 3.4', 'Python 3.5']

@brettcannon
Copy link
Member Author

If you run test.regrtest -T you will discover that (at least) test_importlib and test_runpy prevent coverage data from being written out as 'trace' will try to find files which no longer exist. Both test suites create temp files, import them, and then delete them. Unfortunately 'trace' doesn't ignore that fact and throws an exception that the temporary files are gone.

Since the file is simply gone it probably makes sense to have 'trace' just print out a warning that the file could not be found and move on.

@brettcannon brettcannon added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jan 23, 2011
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 16, 2014

Knowing the platform this occurred on would be useful, but given the age do we care?

@SilentGhost
Copy link
Mannequin

SilentGhost mannequin commented May 13, 2019

Brett, is this something that is still relevant for the supported versions or are you OK with closing this issue as out of date or wont fix?

@brettcannon
Copy link
Member Author

Since I'm not bothered enough to check if this is still an issue I'm fine with closing this.

@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
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant