Skip to content

No garbage collection between parametrized test instances. #8153

Answered by asottile
Vert53 asked this question in General
Discussion options

You must be logged in to vote

if you're using __del__ for resource freeing you're depending on borderline-undefined-cpython-implementation-details. as @RonnyPfannschmidt indicates you should adjust your api to use a context manager

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nicoddemus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RonnyPfannschmidt
Comment options

Comment options

You must be logged in to vote
3 replies
@Vert53
Comment options

@nicoddemus
Comment options

@asottile
Comment options

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #8153 on December 16, 2020 13:16.