ftbfs with python 3.6

Bug #1698979 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopilot (Ubuntu)
Triaged
Critical
Unassigned

Bug Description

Tests fail with Python 3.6:

======================================================================
FAIL: autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_launcher_wrapper_raises_runtimeerror
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<BUILDDIR>>/autopilot-1.6.0+17.04.20170313/autopilot/tests/unit/test_application_launcher.py", line 1091, in test_get_application_launcher_wrapper_raises_runtimeerror
    raises(RuntimeError(expected_error))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: RuntimeError("Command '['ldd', 'autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_launcher_wrapper_raises_runtimeerror-1']' returned non-zero exit status 1.",) has different arguments to RuntimeError("Command '['ldd', 'autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_launcher_wrapper_raises_runtimeerror-1']' returned non-zero exit status 1",).
======================================================================
FAIL: autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_path_raises_when_cant_find_app
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<BUILDDIR>>/autopilot-1.6.0+17.04.20170313/autopilot/tests/unit/test_application_launcher.py", line 1076, in test_get_application_path_raises_when_cant_find_app
    raises(ValueError(expected_error))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: ValueError("Unable to find path for application autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_path_raises_when_cant_find_app-1: Command '['which', 'autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_path_raises_when_cant_find_app-1']' returned non-zero exit status 1.",) has different arguments to ValueError("Unable to find path for application autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_path_raises_when_cant_find_app-1: Command '['which', 'autopilot.tests.unit.test_application_launcher.ApplicationLauncherInternalTests.test_get_application_path_raises_when_cant_find_app-1']' returned non-zero exit status 1",).

It's a bit hard to see but I think the difference is just that there is a period at the end of the error messages now.

Tags: python3.6
Steve Langasek (vorlon)
Changed in autopilot (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.