Autopilot subunit output breaks in python 3.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Critical
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Failing autopilot functional test under python 3:
----
$ python3.3 -m autopilot.run run -v autopilot.
08:25:54.000 INFO run:65 - Autopilot Source Version: 1.4.0
Loading tests from: /home/thomi/
Tests running...
08:25:54.048 INFO globals:57 - *******
08:25:54.048 INFO globals:58 - Starting test autopilot.
08:25:54.048 WARNING testcase:115 - No tracing available - install the python-
08:25:54.101 INFO __init__:95 - Starting autopilot command with:
08:25:54.101 INFO __init__:96 - Autopilot command = /usr/bin/python3.3 -m autopilot.run
08:25:54.101 INFO __init__:97 - Arguments = ['run', '-o', '/tmp/tmpmbjrax', '-f', 'subunit', 'tests']
08:25:54.101 INFO __init__:98 - CWD = '/tmp/tmp0315jn'
08:25:54.389 ERROR testresult:43 - FAIL: autopilot.
08:25:54.390 ERROR testresult:43 - traceback: {{{
Traceback (most recent call last):
File "./autopilot/
self.
File "/usr/lib/
raise mismatch_error
testtools.
}}}
08:25:54.390 ERROR testresult:43 - retcode: {{{
1}}}
08:25:54.390 ERROR testresult:43 - stderr: {{{
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec(code, run_globals)
File "/home/
main()
File "/home/
test_app.run()
File "/home/
self.
File "/home/
test_result = test_suite.
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
return super(WithScena
File "/usr/lib/
return self.__
File "/usr/lib/
return self._run_
File "/usr/lib/
return self._run_
File "/usr/lib/
result.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
self.
File "/usr/lib/
domap(
File "/usr/lib/
return list(map(*args, **kwargs))
File "/usr/lib/
route_
File "/usr/lib/
FMT_32, zlib.crc32(content) & 0xffffffff))
ValueError: write to closed file
}}}
08:25:54.391 ERROR testresult:43 - stdout: {{{
Loading tests from: /tmp/tmp0315jn
}}}
08:25:54.392 ERROR testresult:43 - /var/log/syslog: {{{
}}}
08:25:54.392 ERROR testresult:43 - base path: {{{
/tmp/tmp0315jn}}}
08:25:54.393 INFO globals:57 - *******
08:25:54.393 INFO globals:58 - Starting test autopilot.
08:25:54.394 WARNING testcase:115 - No tracing available - install the python-
08:25:54.410 INFO __init__:95 - Starting autopilot command with:
08:25:54.410 INFO __init__:96 - Autopilot command = /usr/bin/python3.3 -m autopilot.run
08:25:54.410 INFO __init__:97 - Arguments = ['run', '-o', '/tmp/tmpa9mjds', '-f', 'subunit', 'tests']
08:25:54.410 INFO __init__:98 - CWD = '/tmp/tmp37z6jg'
08:25:54.681 ERROR testresult:43 - FAIL: autopilot.
08:25:54.682 ERROR testresult:43 - retcode: {{{
1}}}
08:25:54.682 ERROR testresult:43 - stderr: {{{
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec(code, run_globals)
File "/home/
main()
File "/home/
test_app.run()
File "/home/
self.
File "/home/
test_result = test_suite.
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
return super(WithScena
File "/usr/lib/
return self.__
File "/usr/lib/
return self._run_
File "/usr/lib/
return self._run_
File "/usr/lib/
result.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
self.
File "/usr/lib/
domap(
File "/usr/lib/
return list(map(*args, **kwargs))
File "/usr/lib/
route_
File "/usr/lib/
FMT_32, zlib.crc32(content) & 0xffffffff))
ValueError: write to closed file
}}}
08:25:54.684 ERROR testresult:43 - stdout: {{{
Loading tests from: /tmp/tmp37z6jg
}}}
08:25:54.684 ERROR testresult:43 - /var/log/syslog: {{{
}}}
08:25:54.685 ERROR testresult:43 - traceback-1: {{{
Traceback (most recent call last):
File "./autopilot/
self.
File "/usr/lib/
raise mismatch_error
testtools.
}}}
08:25:54.685 ERROR testresult:43 - base path: {{{
/tmp/tmp37z6jg}}}
=======
FAIL: autopilot.
-------
Empty attachments:
/var/log/syslog
base path: {{{/tmp/
retcode: {{{1}}}
stderr: {{{
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec(code, run_globals)
File "/home/
main()
File "/home/
test_app.run()
File "/home/
self.
File "/home/
test_result = test_suite.
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
return super(WithScena
File "/usr/lib/
return self.__
File "/usr/lib/
return self._run_
File "/usr/lib/
return self._run_
File "/usr/lib/
result.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
self.
File "/usr/lib/
domap(
File "/usr/lib/
return list(map(*args, **kwargs))
File "/usr/lib/
route_
File "/usr/lib/
FMT_32, zlib.crc32(content) & 0xffffffff))
ValueError: write to closed file
}}}
stdout: {{{Loading tests from: /tmp/tmp0315jn}}}
test-log: {{{
08:25:54.048 INFO globals:57 - *******
08:25:54.048 INFO globals:58 - Starting test autopilot.
08:25:54.048 WARNING testcase:115 - No tracing available - install the python-
08:25:54.101 INFO __init__:95 - Starting autopilot command with:
08:25:54.101 INFO __init__:96 - Autopilot command = /usr/bin/python3.3 -m autopilot.run
08:25:54.101 INFO __init__:97 - Arguments = ['run', '-o', '/tmp/tmpmbjrax', '-f', 'subunit', 'tests']
08:25:54.101 INFO __init__:98 - CWD = '/tmp/tmp0315jn'
}}}
Traceback (most recent call last):
File "./autopilot/
self.
File "/usr/lib/
raise mismatch_error
testtools.
=======
FAIL: autopilot.
-------
Empty attachments:
/var/log/syslog
base path: {{{/tmp/
retcode: {{{1}}}
stderr: {{{
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec(code, run_globals)
File "/home/
main()
File "/home/
test_app.run()
File "/home/
self.
File "/home/
test_result = test_suite.
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
return super(WithScena
File "/usr/lib/
return self.__
File "/usr/lib/
return self._run_
File "/usr/lib/
return self._run_
File "/usr/lib/
result.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
self.
File "/usr/lib/
domap(
File "/usr/lib/
return list(map(*args, **kwargs))
File "/usr/lib/
route_
File "/usr/lib/
FMT_32, zlib.crc32(content) & 0xffffffff))
ValueError: write to closed file
}}}
stdout: {{{Loading tests from: /tmp/tmp37z6jg}}}
test-log: {{{
08:25:54.393 INFO globals:57 - *******
08:25:54.393 INFO globals:58 - Starting test autopilot.
08:25:54.394 WARNING testcase:115 - No tracing available - install the python-
08:25:54.410 INFO __init__:95 - Starting autopilot command with:
08:25:54.410 INFO __init__:96 - Autopilot command = /usr/bin/python3.3 -m autopilot.run
08:25:54.410 INFO __init__:97 - Arguments = ['run', '-o', '/tmp/tmpa9mjds', '-f', 'subunit', 'tests']
08:25:54.410 INFO __init__:98 - CWD = '/tmp/tmp37z6jg'
}}}
traceback-1: {{{
Traceback (most recent call last):
File "./autopilot/
self.
File "/usr/lib/
raise mismatch_error
testtools.
}}}
Ran 2 tests in 0.639s
FAILED (failures=2)
----
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Christopher Lee (community): Approve
-
Diff: 749 lines (+344/-140)10 files modifiedautopilot/application/_launcher.py (+3/-12)
autopilot/run.py (+24/-6)
autopilot/testresult.py (+14/-3)
autopilot/tests/functional/test_ap_apps.py (+0/-3)
autopilot/tests/functional/test_autopilot_functional.py (+0/-68)
autopilot/tests/unit/test_application_launcher.py (+0/-15)
autopilot/tests/unit/test_run.py (+72/-20)
autopilot/tests/unit/test_testresults.py (+179/-12)
autopilot/tests/unit/test_utilities.py (+25/-1)
autopilot/utilities.py (+27/-0)
- PS Jenkins bot: Approve (continuous-integration)
- Christopher Lee (community): Approve
-
Diff: 1180 lines (+526/-178)17 files modifiedautopilot/application/_launcher.py (+10/-13)
autopilot/content.py (+2/-1)
autopilot/introspection/dbus.py (+25/-7)
autopilot/run.py (+36/-10)
autopilot/testresult.py (+14/-3)
autopilot/tests/functional/__init__.py (+3/-3)
autopilot/tests/functional/test_ap_apps.py (+15/-4)
autopilot/tests/functional/test_autopilot_functional.py (+21/-79)
autopilot/tests/functional/test_open_window.py (+16/-1)
autopilot/tests/unit/test_application_launcher.py (+15/-17)
autopilot/tests/unit/test_content.py (+11/-2)
autopilot/tests/unit/test_introspection_features.py (+40/-1)
autopilot/tests/unit/test_run.py (+79/-24)
autopilot/tests/unit/test_testresults.py (+179/-12)
autopilot/tests/unit/test_utilities.py (+25/-1)
autopilot/utilities.py (+27/-0)
debian/changelog (+8/-0)
Changed in autopilot: | |
status: | In Progress → Fix Released |
Changed in autopilot (Ubuntu): | |
status: | New → Fix Released |