python 3 failures - /usr/bin/masakari-wsgi and unit tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
Fix Released
|
High
|
Shilpa Devharakar |
Bug Description
There are 2 unit tests failing with python 3.6 and 3.7. This can be recreated on Ubuntu Disco by running the py35 target which by default will use python3 which is /usr/bin/python3 which is python3.7 in Disco. python3.7 is also available in bionic so you can likely update tox.ini to specifically use python3.7. python3.6 is also available on bionic.
=======
Failed 2 tests - output below:
=======
masakari.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/
b' expected_
b' File "/home/
b' self.assertEqua
b' File "/home/
b' self.assertThat
b' File "/home/
b' raise mismatch_error'
b"testtools
b''
masakari.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/
b' self.validator.
b' File "/home/
b' for error in self.iter_
b' File "/home/
b' for error in errors:'
b' File "/home/
b' if re.search(pattern, k):'
b' File "/home/
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'masakari.
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 "/home/
b' self.assertThat
b' File "/home/
b' raise mismatch_error'
b"testtools
b''
======
Totals
======
Ran: 717 tests in 11.7636 sec.
- Passed: 712
- Skipped: 3
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 2
Sum of execute time for each test: 29.1769 sec.
description: | updated |
Changed in masakari: | |
importance: | Undecided → High |
Changed in masakari: | |
assignee: | Corey Bryant (corey.bryant) → Shilpa Devharakar (shilpasd) |
Changed in masakari: | |
status: | In Progress → Fix Committed |
Changed in masakari: | |
status: | Fix Committed → Fix Released |
Looks like these are also failing for python3.6 which you can also get at with bionic.