[SRU] work-around for test_hacking failures with new versions of python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Queens |
Fix Released
|
High
|
Unassigned | ||
Rocky |
Fix Released
|
High
|
Unassigned | ||
Stein |
Fix Released
|
High
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Fix Released
|
High
|
Unassigned | ||
Disco |
Fix Released
|
High
|
Unassigned | ||
Eoan |
Fix Released
|
High
|
Unassigned |
Bug Description
This bug is tracking an SRU for the work-around fix for https:/
[Impact]
test_hacking fails with new versions of python 2.7, 3.6, and 3.7. See https:/
[Test Case]
Build the nova package and it will run unit tests. With the work-around, test_hacking is skipped, and tests will be successful.
[Regression Potential]
Very low. test_hacking will be skipped which decreases testing coverage. This is a temporary fix until an official fix lands for https:/
-------
Note: The original bug description was changed. See details in comment #7: https:/
=== Original Bug Description ===
I'm hitting 2 remaining test failures after other py3.7 fixes have landed [1]:
test_validate_
TypeError: expected string or bytes-like object
test_name_
testtools.
Full tracebacks: https:/
summary: |
- py3.7 test failures + py3.7 test failures - expected string or bytes-like object and + _impl.MismatchError |
description: | updated |
tags: | added: testing |
tags: | added: py37 |
summary: |
- py3.7 test failures - expected string or bytes-like object and - _impl.MismatchError + [SRU] test_hacking fails for new versions of python |
summary: |
- [SRU] test_hacking fails for new versions of python + [SRU] work-around for test_hacking fails for new versions of python |
summary: |
- [SRU] work-around for test_hacking fails for new versions of python + [SRU] work-around for test_hacking failures with new versions of python |
no longer affects: | nova |
description: | updated |
Changed in nova (Ubuntu Eoan): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Disco): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Cosmic): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Bionic): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in nova (Ubuntu Cosmic): | |
importance: | Undecided → High |
Changed in nova (Ubuntu Disco): | |
importance: | Undecided → High |
Changed in nova (Ubuntu Eoan): | |
importance: | Undecided → High |
Here's one more error I'm seeing for py3.7:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= unit.test_ hacking. HackingTestCase .test_check_ doubled_ words unit.test_ hacking. HackingTestCase .test_check_ doubled_ words ------- ------- ------- ------- ------- ------- ------- ------- ------- >>/nova/ tests/unit/ test_hacking. py", line 586, in test_check_ doubled_ words errors= errors) >>/nova/ tests/unit/ test_hacking. py", line 293, in _assert_has_errors assertEqual( expected_ errors or [], actual_errors) python3/ dist-packages/ testtools/ testcase. py", line 411, in assertEqual assertThat( observed, matcher, message) python3/ dist-packages/ testtools/ testcase. py", line 498, in assertThat matchers. _impl.MismatchE rror: [(1, 0, 'N343')] != []
FAIL: nova.tests.
nova.tests.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
expected_
File "/<<PKGBUILDDIR
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.