I get these failures running tests under python3.5 on xenial, while they pass if run under 3.4: /usr/lib/python3/dist-packages/unittest2/loader.py:367: PyGIWarning: UbuntuAppLaunch was imported without specifying a version first. Use gi.require_version('UbuntuAppLaunch', '2') before import to ensure that the right version gets loaded. tests = list(self._find_tests(start_dir, pattern)) ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 ** (process:27668): WARNING **: Unable to connect to Upstart bus: Error spawning command line 'dbus-launch --autolaunch=435350870788ae3025aa21ed00000538 --binary-syntax --close-stderr': Child process exited with code 1 Followed stream is empty. Could not add content object 'autopilot.tests.unit.test_content.FileFollowerTests.test_follow_file_does_not_raise_on_IOError-1' due to IO Error: [Errno 13] Permission denied: '/tmp/tmpm6ggk9mx' Could not add content object 'autopilot.tests.unit.test_content.FileFollowerTests.test_follow_file_returns_empty_content_object_on_error-1' due to IO Error: [Errno 13] Permission denied: '/tmp/tmpgqe4twb0' Followed stream is empty. Followed stream is empty. INFO:root:************************************************************ INFO:root:Starting test Test.id INFO:autopilot.tests.unit.test_logging:autopilot.tests.unit.test_logging.TestCaseLoggingFixtureTests.test_test_log_is_added-1 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 INFO:root:Autopilot Source Version: 1.5.0 WARNING:autopilot.tests.functional.fixtures:Directory already exists: /tmp/tmpnb_vf9k5 ERROR:root:ERROR: fake_test ERROR:root:FAIL: fake_test INFO:root:OK: fake_test ERROR:root:ERROR: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_erroring_test..ErroringTests.test_errors ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 264, in test_errors raise RuntimeError("Uncaught Exception!") RuntimeError: Uncaught Exception! }}} ERROR:root:ERROR: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_erroring_test..ErroringTests.test_errors ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 264, in test_errors raise RuntimeError("Uncaught Exception!") RuntimeError: Uncaught Exception! }}} ERROR:root:ERROR: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_erroring_test..ErroringTests.test_errors ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 264, in test_errors raise RuntimeError("Uncaught Exception!") RuntimeError: Uncaught Exception! }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_failing_test..FailingTests.test_fails ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 252, in test_fails self.fail("Failing Test: ") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing Test: }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_failing_test..FailingTests.test_fails ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 252, in test_fails self.fail("Failing Test: ") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing Test: }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_failing_test..FailingTests.test_fails ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 252, in test_fails self.fail("Failing Test: ") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing Test: }}} INFO:root:OK: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_passing_test..PassingTests.test_passes INFO:root:OK: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_passing_test..PassingTests.test_passes INFO:root:OK: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_file_on_passing_test..PassingTests.test_passes ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_log_file_when_failing_with_unicode..FailingTests.test_fails_unicode ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 277, in test_fails_unicode '\xa1pl\u0279oM \u01ddpo\u0254\u0131u\u2229 oll\u01ddH' File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: ¡plɹoM ǝpoɔıu∩ ollǝH }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_log_file_when_failing_with_unicode..FailingTests.test_fails_unicode ERROR:root:traceback: {{{ Traceback (most recent call last):http://paste.ubuntu.com/13679166/ File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 277, in test_fails_unicode '\xa1pl\u0279oM \u01ddpo\u0254\u0131u\u2229 oll\u01ddH' File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: ¡plɹoM ǝpoɔıu∩ ollǝH }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_creates_non_empty_log_file_when_failing_with_unicode..FailingTests.test_fails_unicode ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 277, in test_fails_unicode '\xa1pl\u0279oM \u01ddpo\u0254\u0131u\u2229 oll\u01ddH' File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: ¡plɹoM ǝpoɔıu∩ ollǝH }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_failfast..ManyFailingTests.test_fail1 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 318, in test_fail1 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_failfast..ManyFailingTests.test_fail1 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 318, in test_fail1 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_failfast..ManyFailingTests.test_fail1 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 318, in test_fail1 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_many_tests..ManyFailingTests.test_fail1 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 300, in test_fail1 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_many_tests..ManyFailingTests.test_fail2 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 303, in test_fail2 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_many_tests..ManyFailingTests.test_fail1 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 300, in test_fail1 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_many_tests..ManyFailingTests.test_fail2 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 303, in test_fail2 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_many_tests..ManyFailingTests.test_fail1 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 300, in test_fail1 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} ERROR:root:FAIL: autopilot.tests.unit.test_testresults.TestResultOutputStreamTests.test_result_object_supports_many_tests..ManyFailingTests.test_fail2 ERROR:root:traceback: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_testresults.py", line 303, in test_fail2 self.fail("Failing test") File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail raise self.failureException(msg) AssertionError: Failing test }}} WARNING:autopilot.introspection.types:Unknown type id 543 WARNING:autopilot.vis.dbus_search:Unable to parse XML response for com.autopilot.test (/) Tests running... ====================================================================== ERROR: autopilot.tests.unit.test_platform.PublicAPITests.test_image_codename_creates_platform_detector ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/home/max/bzr/autopilot/autopilot/tests/unit/test_platform.py", line 52, in test_image_codename_creates_platform_detector mock_detector.create.assert_called_once() File "/usr/lib/python3.5/unittest/mock.py", line 583, in __getattr__ raise AttributeError(name) AttributeError: assert_called_once ====================================================================== ERROR: autopilot.tests.unit.test_platform.PublicAPITests.test_model_creates_platform_detector ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/home/max/bzr/autopilot/autopilot/tests/unit/test_platform.py", line 42, in test_model_creates_platform_detector mock_detector.create.assert_called_once() File "/usr/lib/python3.5/unittest/mock.py", line 583, in __getattr__ raise AttributeError(name) AttributeError: assert_called_once ====================================================================== FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_datetime_properties_have_correct_values(Explicit US/Pacific test,London) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_types.py", line 435, in test_datetime_properties_have_correct_values self.assertThat(dt1.hour, Equals(dt2.hour)) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: 5 != 4 ====================================================================== FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_datetime_properties_have_correct_values(September 2014,London) ---------------------------------------------------------------------- traceback-1: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_types.py", line 435, in test_datetime_properties_have_correct_values self.assertThat(dt1.hour, Equals(dt2.hour)) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: 13 != 12 }}} ====================================================================== FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_datetime_properties_have_correct_values(Summer,London) ---------------------------------------------------------------------- traceback-2: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_types.py", line 435, in test_datetime_properties_have_correct_values self.assertThat(dt1.hour, Equals(dt2.hour)) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: 1 != 0 }}} ====================================================================== FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_equality_with_datetime_object(Explicit US/Pacific test,London) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_types.py", line 468, in test_equality_with_datetime_object self.assertThat(dt1, Equals(dt2)) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: !=: reference = datetime.datetime(2004, 7, 18, 5, 0, tzinfo=tzfile('/usr/share/zoneinfo/Europe/London')) actual = DateTime(2004-07-18 04:00:00) ====================================================================== FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_equality_with_datetime_object(September 2014,London) ---------------------------------------------------------------------- traceback-1: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_types.py", line 468, in test_equality_with_datetime_object self.assertThat(dt1, Equals(dt2)) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: !=: reference = datetime.datetime(2014, 9, 29, 13, 0, tzinfo=tzfile('/usr/share/zoneinfo/Europe/London')) actual = DateTime(2014-09-29 12:00:00) }}} ====================================================================== FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_equality_with_datetime_object(Summer,London) ---------------------------------------------------------------------- traceback-2: {{{ Traceback (most recent call last): File "/home/max/bzr/autopilot/autopilot/tests/unit/test_types.py", line 468, in test_equality_with_datetime_object self.assertThat(dt1, Equals(dt2)) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 433, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: !=: reference = datetime.datetime(2014, 7, 15, 1, 0, tzinfo=tzfile('/usr/share/zoneinfo/Europe/London')) actual = DateTime(2014-07-15 00:00:00) }}} Ran 1296 tests in 0.850s FAILED (failures=8)