π Fixed typos in White mapping of whitespace characters, to use
correct "\u" prefix instead of "u".
π Fix bug in left-associative ternary operators defined using
infixNotation. First reported on StackOverflow by user Jeronimo.
β
Backport of pyparsing_test namespace from 3.0.0, including
β
TestParseResultsAsserts mixin class defining unittest-helper
methods:
π . def assertParseResultsEquals(
self, result, expected_list=None, expected_dict=None, msg=None)
π . def assertParseAndCheckList(
self, expr, test_string, expected_list, msg=None, verbose=True)
π . def assertParseAndCheckDict(
self, expr, test_string, expected_dict, msg=None, verbose=True)
β
. def assertRunTestResults(
β
self, run_tests_report, expected_parse_results=None, msg=None)
π . def assertRaisesParseException(self, exc_type=ParseException, msg=None)
β To use the methods in this mixin class, declare your unittest classes as:
β
from pyparsing import pyparsing_test as ppt
β
class MyParserTest(ppt.TestParseResultsAsserts, unittest.TestCase):
...