Autopilot unit tests failing under python 3.4

Bug #1281733 reported by Corey Goldberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
Critical
Corey Goldberg
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

they run fine under python3.3. getting 7 failures under python3.4 (release candidate):

----

$ python3.4 -m autopilot.run run autopilot.tests.unit
Loading tests from: /home/cgoldberg/code/autopilot

Tests running...

======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_vis_not_present_when_vis_module_not_installed
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 114, in test_vis_not_present_when_vis_module_not_installed
    self.parse_args('vis')
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)
======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_run_command_unknown_format_long_version
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 229, in test_run_command_unknown_format_long_version
    self.parse_args('run --format unknown foo')
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)
======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_launch_command_must_specify_app
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 103, in test_launch_command_must_specify_app
    self.parse_args("launch")
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)
======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_cannot_select_other_debug_profile
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 311, in test_cannot_select_other_debug_profile
    self.parse_args('run --debug-profile nonexistant foo')
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)
======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_run_command_unknown_format_short_version
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 224, in test_run_command_unknown_format_short_version
    self.parse_args('run -f unknown foo')
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)
======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_cannot_select_other_timeout_profile
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 324, in test_cannot_select_other_timeout_profile
    self.parse_args('run --timeout-profile nonexistant foo')
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)
======================================================================
FAIL: autopilot.tests.unit.test_command_line_args.CommandLineArgsTests.test_launch_command_fails_on_unknown_interface
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 70, in test_launch_command_fails_on_unknown_interface
    self.parse_args("launch -i unknown app")
  File "/home/cgoldberg/code/autopilot/autopilot/tests/unit/test_command_line_args.py", line 49, in parse_args
    self.fail("Caught exception: %r" % e)
  File "/usr/lib/python3.4/unittest/case.py", line 639, in fail
    raise self.failureException(msg)
AssertionError: Caught exception: SystemExit(2,)

Ran 565 tests in 0.830s
FAILED (failures=7)

Related branches

Changed in autopilot:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Corey Goldberg (coreygoldberg)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.4+14.04.20140219-0ubuntu1

---------------
autopilot (1.4+14.04.20140219-0ubuntu1) trusty; urgency=low

  [ Thomi Richards ]
  * Vis tool improvements for self-testing: Added ability for vis tool
    to be run with testability enabled, and able to be profiled. (LP:
    #1279944)
  * Add a decorator that makes it easy to write compatible __repr__
    functions in both python 2.x and 3.x.

  [ Leo Arias ]
  * Refactor the _uinput module to avoid side-effects when we import it.
  * Added Mouse, Touch and Pointer drags with rate. (LP: #1257055)

  [ Max Brustkern ]
  * Handle trailing slashes on suites. (LP: #1199088)

  [ Christopher Lee ]
  * Fix import error in functional test
    test_bamf_geometry_gives_reliable_results. (LP: #1281253)

  [ CI bot ]
  * Fix test_command_line_args issues with python 3.4. (LP: #1281733)
 -- Ubuntu daily release <email address hidden> Wed, 19 Feb 2014 21:41:38 +0000

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
status: In Progress → Fix Released
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.