There are 2 unit tests failing with python 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.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/corey/pkg/stein/upstream/masakari/masakari/tests/unit/test_hacking.py", line 371, in test_check_doubled_words'
b' expected_errors=errors)'
b' File "/home/corey/pkg/stein/upstream/masakari/masakari/tests/unit/test_hacking.py", line 234, in _assert_has_errors'
b' self.assertEqual(expected_errors or [], actual_errors)'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/testtools/testcase.py", line 411, in assertEqual'
b' self.assertThat(observed, matcher, message)'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat'
b' raise mismatch_error'
b"testtools.matchers._impl.MismatchError: [(1, 0, 'M325')] != []"
b''
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/corey/pkg/stein/upstream/masakari/masakari/api/validation/validators.py", line 181, in validate'
b' self.validator.validate(*args, **kwargs)'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/jsonschema/validators.py", line 129, in validate'
b' for error in self.iter_errors(*args, **kwargs):'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/jsonschema/validators.py", line 105, in iter_errors'
b' for error in errors:'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/jsonschema/_validators.py", line 14, in patternProperties'
b' if re.search(pattern, k):'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/re.py", line 183, in search'
b' return _compile(pattern, flags).search(string)'
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/corey/pkg/stein/upstream/masakari/masakari/tests/unit/test_api_validation.py", line 100, in check_validation_error'
b' method(body=body, req=req,)'
b' File "/home/corey/pkg/stein/upstream/masakari/masakari/api/validation/__init__.py", line 54, in wrapper'
b" schema_validator.validate(kwargs['body'])"
b' File "/home/corey/pkg/stein/upstream/masakari/masakari/api/validation/validators.py", line 198, in validate'
b' raise exception.ValidationError(detail=detail)'
b'masakari.exception.ValidationError: 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/corey/pkg/stein/upstream/masakari/masakari/tests/unit/test_api_validation.py", line 278, in test_validate_patternProperties_fails'
b' expected_detail=detail)'
b' File "/home/corey/pkg/stein/upstream/masakari/masakari/tests/unit/test_api_validation.py", line 108, in check_validation_error'
b" 'Exception details did not match expected')"
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/testtools/testcase.py", line 411, in assertEqual'
b' self.assertThat(observed, matcher, message)'
b' File "/home/corey/pkg/stein/upstream/masakari/.tox/py35/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat'
b' raise mismatch_error'
b"testtools.matchers._impl.MismatchError: 'expected string or buffer' != 'expected string or bytes-like object': Exception details did not match expected"
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.
There are 2 unit tests failing with python 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.
======= ======= ======= ======= == ======= ======= ======= ==
Failed 2 tests - output below:
=======
masakari. tests.unit. test_hacking. HackingTestCase .test_check_ doubled_ words ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
-------
Captured traceback: corey/pkg/ stein/upstream/ masakari/ masakari/ tests/unit/ test_hacking. py", line 371, in test_check_ doubled_ words' errors= errors) ' corey/pkg/ stein/upstream/ masakari/ masakari/ tests/unit/ test_hacking. py", line 234, in _assert_has_errors' l(expected_ errors or [], actual_errors)' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ testtools/ testcase. py", line 411, in assertEqual' (observed, matcher, message)' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ testtools/ testcase. py", line 498, in assertThat' .matchers. _impl.MismatchE rror: [(1, 0, 'M325')] != []"
~~~~~~~~~~~~~~~~~~~
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. tests.unit. test_api_ validation. PatternProperti esTestCase. test_validate_ patternProperti es_fails ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
-------
Captured traceback: corey/pkg/ stein/upstream/ masakari/ masakari/ api/validation/ validators. py", line 181, in validate' validate( *args, **kwargs)' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ jsonschema/ validators. py", line 129, in validate' errors( *args, **kwargs):' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ jsonschema/ validators. py", line 105, in iter_errors' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ jsonschema/ _validators. py", line 14, in patternProperties' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/re.py" , line 183, in search' search( string) ' corey/pkg/ stein/upstream/ masakari/ masakari/ tests/unit/ test_api_ validation. py", line 100, in check_validatio n_error' corey/pkg/ stein/upstream/ masakari/ masakari/ api/validation/ __init_ _.py", line 54, in wrapper' validator. validate( kwargs[ 'body'] )" corey/pkg/ stein/upstream/ masakari/ masakari/ api/validation/ validators. py", line 198, in validate' ValidationError (detail= detail) ' exception. ValidationError : expected string or bytes-like object' corey/pkg/ stein/upstream/ masakari/ masakari/ tests/unit/ test_api_ validation. py", line 278, in test_validate_ patternProperti es_fails' detail= detail) ' corey/pkg/ stein/upstream/ masakari/ masakari/ tests/unit/ test_api_ validation. py", line 108, in check_validatio n_error' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ testtools/ testcase. py", line 411, in assertEqual' (observed, matcher, message)' corey/pkg/ stein/upstream/ masakari/ .tox/py35/ lib/python3. 7/site- packages/ testtools/ testcase. py", line 498, in assertThat' .matchers. _impl.MismatchE rror: 'expected string or buffer' != 'expected string or bytes-like object': Exception details did not match expected"
~~~~~~~~~~~~~~~~~~~
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.