Skip to content

trace fails when test imported a temporary file #55200

Closed

Description

@brettcannon
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']

Activity

  1. brettcannon commented on Jan 23, 2011

    @brettcannon
    MemberAuthor

    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.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or error
    on Jan 23, 2011
  3. BreamoreBoy commented on Jul 16, 2014

    BreamoreBoymannequin
    Mannequin

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

  4. SilentGhost commented on May 13, 2019

    SilentGhostmannequin
    Mannequin

    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?

  5. brettcannon commented on May 14, 2019

    @brettcannon
    MemberAuthor

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

  6. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy