Skip to content

Backport fix for "IDisposable & InstancePerTestCase" (PR 3843) #3904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

stevenaw
Copy link
Member

@stevenaw stevenaw commented Aug 1, 2021

Backporting #3844 to the v3.13-dev branch.
Fixes #3843

mvdfugro added 19 commits August 1, 2021 17:05
This adds thread-safe increments for BaseLifeCycle. Note that this only allows
running multithreaded tests within a single LifeCycleAttributeTests test case.
LifeCycleAttributeTests remains NonParallelizable (at least within a process)
due to the use of static fields. Added an annotation to explicitly show so.
…BaseLifeCycle

This surfaced that the tests actually were not running at all. After modifying
the tests to instantiate the _nested_ fixture, it seems the attribute does
not correctly inherit.

To further verify this, added a quick local test case -- this can be removed later.
One of these is a failing test (nested class), as the corresponding
'regular' test is failing as well.
@rprouse rprouse added this to the 3.13.3 milestone Aug 3, 2021
@rprouse rprouse merged commit afa822e into v3.13-dev Aug 3, 2021
@rprouse rprouse deleted the stevenaw/patch-v313-onetimesetup-instancepertestcase branch August 3, 2021 14:31
@stevenaw
Copy link
Member Author

stevenaw commented Aug 4, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants