From a6c722140499dcfbd383f45c29cc235148b785b9 Mon Sep 17 00:00:00 2001 From: ptmcg Date: Thu, 11 Aug 2016 08:01:28 +0000 Subject: oneOf test cleanup git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@409 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b --- src/unitTests.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/unitTests.py b/src/unitTests.py index 9313778..cb53509 100644 --- a/src/unitTests.py +++ b/src/unitTests.py @@ -2970,25 +2970,25 @@ class MiscellaneousParserTests(ParseTestCase): try: test1 = pyparsing.oneOf("a b c d a") except RuntimeError: - assert False,"still have infinite loop in oneOf with duplicate symbols" + assert False,"still have infinite loop in oneOf with duplicate symbols (string input)" print_("verify oneOf handles generator input") try: - test1 = pyparsing.oneOf(c for c in "a b c d a") + test1 = pyparsing.oneOf(c for c in "a b c d a" if not c.isspace()) except RuntimeError: - assert False,"still have infinite loop in oneOf with duplicate symbols" + assert False,"still have infinite loop in oneOf with duplicate symbols (generator input)" print_("verify oneOf handles list input") try: test1 = pyparsing.oneOf("a b c d a".split()) except RuntimeError: - assert False,"still have infinite loop in oneOf with duplicate symbols" + assert False,"still have infinite loop in oneOf with duplicate symbols (list input)" print_("verify oneOf handles set input") try: test1 = pyparsing.oneOf(set("a b c d a")) except RuntimeError: - assert False,"still have infinite loop in oneOf with duplicate symbols" + assert False,"still have infinite loop in oneOf with duplicate symbols (set input)" # test MatchFirst bugfix if "B" in runtests: -- cgit v1.2.1