tests fail under python 3.6
Bug #1703697 reported by
Joshua Powers
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
High
|
Scott Moser |
Bug Description
Steps to reproduce:
1. lxc launch ubuntu-daily:a a
2. lxc exec a bash
3. add-apt-repository ppa:canonical-
4. apt-get update
5. apt-get upgrade -y
6. apt-get install tox
6. git clone https:/
7. cd cloud-init
8. tox
Expected results:
All tests pass
Actual results:
Numerous unittest failures, see:
http://
There appear to be three types of errors:
9x jsonpatch issues related: http://
2x unexpected None type: http://
1x incorrect assert/mock(?) http://
Related bugs:
* bug 1704024: stack trace on import with python3.6
Related branches
~smoser/cloud-init:bug/1703697-python3.6-ubuntu
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
- Joshua Powers (community): Approve
-
Diff: 178 lines (+34/-38)4 files modifiedcloudinit/net/netplan.py (+2/-1)
tests/unittests/helpers.py (+20/-1)
tests/unittests/test_distros/test_create_users.py (+12/-18)
tests/unittests/test_runs/test_simple_run.py (+0/-18)
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → High |
description: | updated |
summary: |
- tox fails under python 3.6 + tests fail under python 3.6 |
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Scott Moser (smoser) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in cloud-init: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
Certainly at the least we need a new python-json-patch but that's a bit complicated thanks to https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 839779. Trying to figure out what to do about that.