---
source: crates/ruff/src/rules/flake8_pytest_style/mod.rs
---
PT016.py:13:5: PT016 No message passed to `pytest.fail()`
   |
13 | def test_xxx():  # Error
14 |     pytest.fail()
   |     ^^^^^^^^^^^ PT016
15 |     pytest.fail("")
16 |     pytest.fail(f"")
   |

PT016.py:14:5: PT016 No message passed to `pytest.fail()`
   |
14 | def test_xxx():  # Error
15 |     pytest.fail()
16 |     pytest.fail("")
   |     ^^^^^^^^^^^ PT016
17 |     pytest.fail(f"")
18 |     pytest.fail(msg="")
   |

PT016.py:15:5: PT016 No message passed to `pytest.fail()`
   |
15 |     pytest.fail()
16 |     pytest.fail("")
17 |     pytest.fail(f"")
   |     ^^^^^^^^^^^ PT016
18 |     pytest.fail(msg="")
19 |     pytest.fail(msg=f"")
   |

PT016.py:16:5: PT016 No message passed to `pytest.fail()`
   |
16 |     pytest.fail("")
17 |     pytest.fail(f"")
18 |     pytest.fail(msg="")
   |     ^^^^^^^^^^^ PT016
19 |     pytest.fail(msg=f"")
   |

PT016.py:17:5: PT016 No message passed to `pytest.fail()`
   |
17 |     pytest.fail(f"")
18 |     pytest.fail(msg="")
19 |     pytest.fail(msg=f"")
   |     ^^^^^^^^^^^ PT016
   |


