Commits

Nathan Taylor  committed 0ac3eb2

in unit test: explicitly check that rule is present in the exception

  • Participants
  • Parent commits 8b0a39a
  • Branches improved_ebnfparse_error

Comments (0)

Files changed (1)

File pypy/rlib/parsing/test/test_ebnfparse.py

 IGNORE: " ";
 foo: "A"?;
 """
-    py.test.raises(AssertionError, parse_ebnf, grammar)
+    excinfo = py.test.raises(AssertionError, parse_ebnf, grammar)
+    assert "Rule 'foo'" in str(excinfo.value)