(self, monkeypatch: MonkeyPatch)
| 75 | monkeypatch.setattr("unkn123.classx", None) |
| 76 | |
| 77 | def test_unknown_attr(self, monkeypatch: MonkeyPatch) -> None: |
| 78 | with pytest.raises(AttributeError): |
| 79 | monkeypatch.setattr("os.path.qweqwe", None) |
| 80 | |
| 81 | def test_unknown_attr_non_raising(self, monkeypatch: MonkeyPatch) -> None: |
| 82 | # https://github.com/pytest-dev/pytest/issues/746 |