fix some_dir NameError

This commit is contained in:
Thomas Grainger 2023-10-19 18:29:24 +01:00
parent 4821a41967
commit db62b80e8d
No known key found for this signature in database
GPG Key ID: DDA48B5C47FBC8C8
1 changed files with 1 additions and 1 deletions

View File

@ -1446,7 +1446,7 @@ def test_importorskip_module_not_found_raises_on_import_error(
(on_path / "doesnotexist.py").write_bytes(b"1 / 0")
monkeypatch.syspath_prepend(some_dir)
monkeypatch.syspath_prepend(on_path)
with pytest.raises(ImportError):
pytest.importorskip("doesnotexist", exc=ModuleNotFoundError)