community/py3-softlayer-zeep: fix test
Backport upstream patch for a failed test involving xsd date parsing. The error led to a rebuild failure on a 3.21 builder (error log).
self = <tests.test_xsd_builtins.TestDate object at 0x7fffeef920f0>
def test_pythonvalue(self):
instance = builtins.Date()
assert instance.pythonvalue("2016-03-04") == datetime.date(2016, 3, 4)
> assert instance.pythonvalue("2001-10-26+02:00") == datetime.date(2001, 10, 26)
tests/test_xsd_builtins.py:244:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
build/lib/zeep/xsd/types/builtins.py:44: in _wrapper
return func(self, re.sub(r"[\n\r\t ]", " ", value).strip())
build/lib/zeep/xsd/types/builtins.py:213: in pythonvalue
return isodate.parse_date(value)
[...]
> raise ISO8601Error("Unrecognised ISO 8601 date format: %r" % datestring)
E isodate.isoerror.ISO8601Error: Unrecognised ISO 8601 date format: '2001-10-26+02:00'
Edited by mio