From f456f09054ed5d6fe16c7e213e8a73b3f88e1ea1 Mon Sep 17 00:00:00 2001 From: krangelov Date: Thu, 16 Sep 2021 12:08:22 +0200 Subject: [PATCH] finally fix the test caused by the change in readNGF behaviour --- src/runtime/python/test_suite.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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):