Author: Nathan Taylor <[email protected]> Branch: improved_ebnfparse_error Changeset: r59596:0ac3eb25b37d Date: 2012-12-25 12:26 -0700 http://bitbucket.org/pypy/pypy/changeset/0ac3eb25b37d/
Log: in unit test: explicitly check that rule is present in the exception diff --git a/pypy/rlib/parsing/test/test_ebnfparse.py b/pypy/rlib/parsing/test/test_ebnfparse.py --- a/pypy/rlib/parsing/test/test_ebnfparse.py +++ b/pypy/rlib/parsing/test/test_ebnfparse.py @@ -476,4 +476,5 @@ 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) _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
