diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2019-06-29 00:40:47 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2019-06-29 00:40:47 -0500 |
commit | 9dbb88ea5bd383afc5b2a20786c1810f525383e1 (patch) | |
tree | dec70ecccbecba48bfcea70ff451a289a033cf69 | |
parent | 450fd02154cfb0ba0cdbec09fc34e8e66a092f11 (diff) | |
download | pyparsing-git-9dbb88ea5bd383afc5b2a20786c1810f525383e1.tar.gz |
Fix runTests to output results if post_parse returns None
-rw-r--r-- | pyparsing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyparsing.py b/pyparsing.py index c041fc6..4cb96df 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -96,7 +96,7 @@ classes inherit from. Use the docstrings for examples of how to: """ __version__ = "2.4.1" -__versionTime__ = "29 Jun 2019 05:14 UTC" +__versionTime__ = "29 Jun 2019 05:25 UTC" __author__ = "Paul McGuire <ptmcg@users.sourceforge.net>" import string @@ -2550,6 +2550,8 @@ class ParserElement(object): out.append(pp_value.dump()) else: out.append(str(pp_value)) + else: + out.append(result.dump()) except Exception as e: out.append(result.dump(full=fullDump)) out.append("{0} failed: {1}: {2}".format(postParse.__name__, type(e).__name__, e)) |