summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unitTests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/unitTests.py b/unitTests.py
index 6293673..14cfe22 100644
--- a/unitTests.py
+++ b/unitTests.py
@@ -3870,6 +3870,10 @@ class ParseResultsWithNameOr(ParseTestCase):
class EmptyDictDoesNotRaiseException(ParseTestCase):
def runTest(self):
+ if not PY_3:
+ print('explain() not supported in Py2')
+ return
+
import pyparsing as pp
key = pp.Word(pp.alphas)
@@ -3891,6 +3895,10 @@ class EmptyDictDoesNotRaiseException(ParseTestCase):
class ExplainExceptionTest(ParseTestCase):
def runTest(self):
+ if not PY_3:
+ print('explain() not supported in Py2')
+ return
+
import pyparsing as pp
expr = pp.Word(pp.nums).setName("int") + pp.Word(pp.alphas).setName("word")