test failure test_strutils.SplitByCommas.test_with_backslash_inside_quoted with pyparsing 2.0.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.utils |
Expired
|
Undecided
|
Unassigned |
Bug Description
With pyparsing 2.0.1 this test failure occurs:
[ 29s] FAIL: oslo_utils.
[ 29s] -------
[ 29s] Empty attachments:
[ 29s] stderr
[ 29s] stdout
[ 29s]
[ 29s] Traceback (most recent call last):
[ 29s] File "oslo_utils/
[ 29s] r'"abc\
[ 29s] File "oslo_utils/
[ 29s] self.assertEqua
[ 29s] File "/usr/lib/
[ 29s] self.assertThat
[ 29s] File "/usr/lib/
[ 29s] raise mismatch_error
[ 29s] testtools.
[ 29s] reference = ['abc"', 'de', 'fg,h', 'klm\\', '"nop']
[ 29s] actual = ['abc"', 'de', 'fg,h', 'klm\\\\', '"nop']
[ 29s] Ran 8471 tests in 4.980s
pyparsing 2.0.3 changelog includes this information:
- update to version 2.0.3:
* Fixed escaping behavior in QuotedString. Formerly, only
quotation marks (or characters designated as quotation marks in
the QuotedString constructor) would be escaped. Now all escaped
characters will be escaped, and the escaping backslashes will
be removed.
it looks like testing against 2.0.7 (latest release before 2.1) works just fine, further confirming this relationship. suggest to bump the minimum requirement.
we have update to pyparsing===2.2.0 in https:/ /github. com/openstack/ requirements/ blob/master/ upper-constrain ts.txt# L377 and there is no test failure now.