()
| 284 | |
| 285 | |
| 286 | def test_suppress(): |
| 287 | try: |
| 288 | 1 / 0 |
| 289 | except Exception: |
| 290 | traceback = Traceback(suppress=[pytest, "foo"]) |
| 291 | assert len(traceback.suppress) == 2 |
| 292 | assert "pytest" in traceback.suppress[0] |
| 293 | assert "foo" in traceback.suppress[1] |
| 294 | |
| 295 | |
| 296 | @pytest.mark.parametrize( |