GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — trace fails when test imported a temporary file · Issue #55200 · python/cpython

trace fails when test imported a temporary file #55200

New issue
Copy link
New issue
Copy link
Closed
Closed
trace fails when test imported a temporary file#55200
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@brettcannon
brettcannon
opened on Jan 23, 2011
Issue body actions
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
    brettcannon
    on Jan 23, 2011
    MemberAuthor
    More actions

    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. brettcannon
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jan 23, 2011
  3. BreamoreBoy commented on Jul 16, 2014

    @BreamoreBoy
    BreamoreBoymannequin
    on Jul 16, 2014
    Mannequin
    More actions

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

  4. SilentGhost commented on May 13, 2019

    @SilentGhost
    SilentGhostmannequin
    on May 13, 2019
    Mannequin
    More actions

    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
    brettcannon
    on May 14, 2019
    MemberAuthor
    More actions

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

  6. brettcannon
    closed this as completedon May 14, 2019
  7. ezio-melotti
    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/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.