Skip to content

test_tools: test.test_tools.test_unparse.UnparseTestCase: test_tools leaked [36, 36, 36] references #82358

Closed

Description

@vstinner
BPO 38177
Nosy @vstinner

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-09-16.23:42:58.267>
created_at = <Date 2019-09-15.09:56:26.179>
labels = ['tests', '3.9']
title = 'test_tools: test.test_tools.test_unparse.UnparseTestCase: test_tools leaked [36, 36, 36] references'
updated_at = <Date 2019-09-16.23:42:58.267>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2019-09-16.23:42:58.267>
actor = 'pablogsal'
assignee = 'none'
closed = True
closed_date = <Date 2019-09-16.23:42:58.267>
closer = 'pablogsal'
components = ['Tests']
creation = <Date 2019-09-15.09:56:26.179>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 38177
keywords = []
message_count = 2.0
messages = ['352473', '352474']
nosy_count = 1.0
nosy_names = ['vstinner']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue38177'
versions = ['Python 3.9']

Activity

  1. vstinner commented on Sep 15, 2019

    @vstinner
    MemberAuthor

    https://buildbot.python.org/all/#/builders/189/builds/153

    $ ./python -m test -R 3:3 test_tools -m test.test_tools.test_unparse.UnparseTestCase.test_nonlocal
    Run tests sequentially
    0:00:00 load avg: 1.48 [1/1] test_tools
    beginning 6 repetitions
    123456
    ......
    test_tools leaked [36, 36, 36] references, sum=108
    test_tools failed

    == Tests result: FAILURE ==

    1 test failed:
    test_tools

    Total duration: 591 ms
    Tests result: FAILURE

  2. vstinner commented on Sep 15, 2019

    @vstinner
    MemberAuthor

    Oh, test_unparse.UnparseTestCase.test_nonlocal has been fixed. Maybe by:

    commit 0247e80
    Author: Eddie Elizondo <[email protected]>
    Date: Sat Sep 14 09:38:17 2019 -0400

    Fix leaks in Python-ast.c (bpo-16127)
    

    But there are more leaks.

    vstinner@apu$ make && ./python -m test -R 3:3 test_tools -m test.test_tools.test_c_analyzer.test_c_analyzer_common.test_known.FromFileTests.test_typical

    It seems like the test leaks since the test has been added by:

    commit ee536b2
    Author: Eric Snow <[email protected]>
    Date: Wed Sep 11 19:49:45 2019 +0100

    bpo-36876: Add a tool that identifies unsupported global C variables. (bpo-15877)
    
  3. 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

    3.9 (EOL)end of lifetestsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions