summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2016-08-11 08:01:28 +0000
committerptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2016-08-11 08:01:28 +0000
commita6c722140499dcfbd383f45c29cc235148b785b9 (patch)
tree4c307cc77fba26f056085032d0eb7791989ead26
parent9851b10bd83a68b99f0ef9238171b27746729252 (diff)
downloadpyparsing-a6c722140499dcfbd383f45c29cc235148b785b9.tar.gz
oneOf test cleanup
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@409 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
-rw-r--r--src/unitTests.py10
1 files 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: