Home
/
Python 3.11
/
Unittest
/
skipIf
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Unittest
skipIf
Python 3.11
Skip the decorated test if condition is true.
Syntax
PYTHON
Copy
@unittest.skipIf(condition, reason)