pyparsing v4.6 Release Notes

Release Date: 2019-12-25 // over 4 years ago
  • ๐Ÿ”– Version 2.4.6 - December, 2019

    ๐Ÿ›  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
    ๐Ÿ“œ . 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):