diff --git a/src/runtime/python/test_suite.py b/src/runtime/python/test_suite.py index eb27e6490..a7db80f72 100644 --- a/src/runtime/python/test_suite.py +++ b/src/runtime/python/test_suite.py @@ -47,9 +47,8 @@ def test_bootNGF_existing(NGF): # readNGF def test_readNGF_non_existant(): - PGF = pgf.readNGF("./abc.ngf") # create empty grammar - assert PGF.categories == [] - os.remove("./abc.ngf") # cleanup + with pytest.raises(FileNotFoundError): + pgf.readNGF("./abc.ngf") # create empty grammar def test_readNGF_GF(): with pytest.raises(pgf.PGFError):