summaryrefslogtreecommitdiff
path: root/unitTests.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2018-12-24 20:10:15 -0600
committerGitHub <noreply@github.com>2018-12-24 20:10:15 -0600
commitccd7708b07f987d49ee76aa9b003f9e172808ff1 (patch)
tree20ed886e5eb20e37d7a776911fee8cb5c7723fa6 /unitTests.py
parent1928ae222149789046a07cceec21b256c9c84a8c (diff)
parentd5cce29645b3f25526313210485e5ce7096dec63 (diff)
downloadpyparsing-git-ccd7708b07f987d49ee76aa9b003f9e172808ff1.tar.gz
Merge branch 'master' into psyco
Diffstat (limited to 'unitTests.py')
-rw-r--r--unitTests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/unitTests.py b/unitTests.py
index 7dcc237..851a98a 100644
--- a/unitTests.py
+++ b/unitTests.py
@@ -850,7 +850,7 @@ class ParseKeywordTest(ParseTestCase):
print_("Match Literal", end=' ')
try:
print_(lit.parseString(s))
- except:
+ except Exception:
print_("failed")
if litShouldPass:
self.assertTrue(False, "Literal failed to match %s, should have" % s)
@@ -861,7 +861,7 @@ class ParseKeywordTest(ParseTestCase):
print_("Match Keyword", end=' ')
try:
print_(kw.parseString(s))
- except:
+ except Exception:
print_("failed")
if kwShouldPass:
self.assertTrue(False, "Keyword failed to match %s, should have" % s)
@@ -3939,10 +3939,10 @@ class MiscellaneousParserTests(ParseTestCase):
print_(t, repr(t))
try:
names.append( t[0].getName() )
- except:
+ except Exception:
try:
names.append( t.getName() )
- except:
+ except Exception:
names.append( None )
print_(teststring)
print_(names)