fix mypy 0.930 errors

This commit is contained in:
Anthony Sottile
2021-12-29 17:52:16 -05:00
parent cbccc06302
commit b0aabe4081
6 changed files with 16 additions and 3 deletions

View File

@@ -143,6 +143,10 @@ class TestImportPath:
assert obj.x == 42 # type: ignore[attr-defined]
assert obj.__name__ == "execfile"
def test_import_path_missing_file(self, path1: Path) -> None:
with pytest.raises(ImportPathMismatchError):
import_path(path1 / "sampledir", root=path1)
def test_renamed_dir_creates_mismatch(
self, tmp_path: Path, monkeypatch: MonkeyPatch
) -> None: