Unit test test_validate_patternProperties_fails fails under Python 3.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
Running unit tests under Python 3.6 fails while working in Python 2.7:
cinder.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/
b' self.validator.
b' File "/usr/lib/
b' for error in self.iter_
b' File "/usr/lib/
b' for error in errors:'
b' File "/usr/lib/
b' if re.search(pattern, k):'
b' File "/usr/lib/
b' return _compile(pattern, flags).
b'TypeError: expected string or bytes-like object'
b''
b'During handling of the above exception, another exception occurred:'
b''
b'Traceback (most recent call last):'
b' File "/home/
b' method(body=body, req=req,)'
b' File "/home/
b" schema_
b' File "/home/
b' raise exception.
b'cinder.
b''
b'During handling of the above exception, another exception occurred:'
b''
b'Traceback (most recent call last):'
b' File "/home/
b' expected_
b' File "/home/
b" 'Exception details did not match expected')"
b' File "/usr/lib/
b' self.assertThat
b' File "/usr/lib/
b' raise mismatch_error'
b"testtools