tests_simple.py has side effects, allows test_create_users to pass when it should not.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Confirmed
|
High
|
Unassigned |
Bug Description
test_simple_run.py has some side effects, and makes test_create_
This was found when looking at bug 1704024. It seems that python 3.6 ends
up iterating through tests in a different order than 3.5.
$ python3 -m nose tests/unittests
..........
-------
Ran 10 tests in 0.065s
OK
$ python3 -m nose tests/unittests
=======
FAIL: test_basic (tests.
-------
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "/home/
mock.
AssertionError: [call([
-------
cloudinit.util: DEBUG: Reading from /etc/os-release (quiet=True)
cloudinit.util: DEBUG: Read 407 bytes from /etc/os-release
cloudinit.util: DEBUG: Reading from /proc/1/cmdline (quiet=False)
cloudinit.util: DEBUG: Read 47 bytes from /proc/1/cmdline
cloudinit.util: DEBUG: Reading from /etc/system-
cloudinit.util: DEBUG: Read 0 bytes from /etc/system-
cloudinit.distros: DEBUG: Adding user foouser
-------
-------
Ran 9 tests in 0.023s
FAILED (failures=1)
Related bugs:
* bug 1704024: tox fails under python 3.6
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → High |