Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adapt TestStaticTypes to use @no_rerun #119667

Open
@sobolevn

Description

@sobolevn

Feature or enhancement

Refs #119660

Right now this class re-implements @no_rerun decorator:

class TestStaticTypes(unittest.TestCase):
_has_run = False
@classmethod
def setUpClass(cls):
# The tests here don't play nice with our approach to refleak
# detection, so we bail out in that case.
if cls._has_run:
raise unittest.SkipTest('these tests do not support re-running')
cls._has_run = True

It is worth fixing.
I will send a PR.

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions