diff --git a/spiceypy/tests/test_spiceerrors.py b/spiceypy/tests/test_spiceerrors.py index 29c88269..35e41dbf 100644 --- a/spiceypy/tests/test_spiceerrors.py +++ b/spiceypy/tests/test_spiceerrors.py @@ -38,7 +38,7 @@ def test_geterror(): def test_getSpiceyException(): - with pytest.raises(FileNotFoundError): + with pytest.raises(OSError): spice.furnsh(os.path.join(cwd, "_null_kernel.txt")) spice.reset()