Skip to content

test_import: test_concurrency() leaks references and memory on Windows #107086

Closed
@vstinner

Description

@vstinner
vstinner@WIN C:\victor\python\main>python -m test test_import -R 3:3 -v
(...)
test_import leaked [23, 23, 34] references, sum=80
test_import leaked [23, 21, 34] memory blocks, sum=78
test_import failed (reference leak) in 40.3 sec

test_concurrency() alone reproduces the issue:

vstinner@WIN C:\victor\python\main>python -m test test_import -R 3:3 -v -m test_concurrency 
(...)
test_import leaked [40, 40, 40] references, sum=120
test_import leaked [40, 40, 40] memory blocks, sum=120

By the way, test_typing also leaks:

vstinner@WIN C:\victor\python\main>python -m test test_typing -R 3:3
(...)
test_typing leaked [1, 1, 1] memory blocks, sum=3

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions