ID EN
Unittest

tearDownClass

Python 3.11

A class method called after tests in an individual class have run. tearDownClass is called with the class as the only argument and must be decorated as a classmethod():

Syntax

PYTHON
tearDownClass()

Examples

Example 1
PYTHON
@classmethod
def tearDownClass(cls):
    ...

See Also

classmethod() Class and Module Fixtures