summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2016-08-11 08:01:28 +0000
committerPaul McGuire <ptmcg@austin.rr.com>2016-08-11 08:01:28 +0000
commit4051fab9e9ab4b4e149f2059f48c34521f562590 (patch)
tree4c307cc77fba26f056085032d0eb7791989ead26 /src
parent4d746e83cf83a7c48feed79903b1bd1d6b5e04be (diff)
downloadpyparsing-git-4051fab9e9ab4b4e149f2059f48c34521f562590.tar.gz
oneOf test cleanup
Diffstat (limited to 'src')
-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: