Skip to content

test_importlib fails in refleak mode #58705

Closed

Description

@pitrou
BPO 14500
Nosy @brettcannon, @pitrou, @ericsnowcurrently

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 = 'https://github.com/brettcannon'
closed_at = <Date 2012-04-06.17:13:50.300>
created_at = <Date 2012-04-04.22:13:13.812>
labels = ['tests', 'type-bug', 'library']
title = 'test_importlib fails in refleak mode'
updated_at = <Date 2012-04-06.17:13:50.299>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2012-04-06.17:13:50.299>
actor = 'brett.cannon'
assignee = 'brett.cannon'
closed = True
closed_date = <Date 2012-04-06.17:13:50.300>
closer = 'brett.cannon'
components = ['Library (Lib)', 'Tests']
creation = <Date 2012-04-04.22:13:13.812>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 14500
keywords = []
message_count = 2.0
messages = ['157514', '157672']
nosy_count = 4.0
nosy_names = ['brett.cannon', 'pitrou', 'python-dev', 'eric.snow']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue14500'
versions = ['Python 3.3']

Activity

  1. pitrou commented on Apr 4, 2012

    @pitrou
    MemberAuthor
    $ ./python -m test -R 3:2 test_importlib 
    [1/1] test_importlib
    beginning 5 repetitions
    12345
    test test_importlib failed -- Traceback (most recent call last):
      File "/home/antoine/cpython/default/Lib/importlib/test/import_/test_packages.py", line 41, in test_module_not_package_but_side_effects
        submodule = import_util.import_(subname)
      File "/home/antoine/cpython/default/Lib/importlib/test/import_/util.py", line 15, in import_
        return importlib.__import__(*args, **kwargs)
      File "/home/antoine/cpython/default/Lib/importlib/_bootstrap.py", line 1046, in __import__
        return sys.modules[name.partition('.')[0]]
    KeyError: 'mod'
  2. added
    stdlib
    tests
    type-bug
    on Apr 4, 2012
  3. python-dev commented on Apr 6, 2012

    python-devmannequin
    Mannequin

    New changeset 1c3bd0cc3eca by Brett Cannon in branch 'default':
    Issue bpo-14500: Fix importlib.test.import_.test_packages to clean up
    http://hg.python.org/cpython/rev/1c3bd0cc3eca

  4. 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

Labels

stdlibteststype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions