Trunk and stable-1-6 tests are broken

Bug #766181 reported by Facundo Batista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Status tracked in Trunk
Stable-1-6
Fix Released
High
Alejandro J. Cura
Trunk
Fix Released
High
Alejandro J. Cura

Bug Description

===============================================================================
[ERROR]: tests.status.test_aggregator.StatusAggregatorTestCase.test_counters_start_at_zero

Traceback (most recent call last):
  File "/home/facundo/canonical/u1-client/stable-1-6--more-simult-transfers/tests/status/test_aggregator.py", line 1222, in test_counters_start_at_zero
    self.assertStatusReset()
  File "/home/facundo/canonical/u1-client/stable-1-6--more-simult-transfers/tests/status/test_aggregator.py", line 1205, in assertStatusReset
    self.assertIs(self.aggregator.queue_done_timer, None)
exceptions.AttributeError: 'StatusAggregatorTestCase' object has no attribute 'assertIs'
===============================================================================
[ERROR]: tests.status.test_aggregator.StatusAggregatorTestCase.test_download_started_cancels_timer

Traceback (most recent call last):
  File "/home/facundo/canonical/u1-client/stable-1-6--more-simult-transfers/tests/status/test_aggregator.py", line 1389, in test_download_started_cancels_timer
    self.assertIs(self.aggregator.queue_done_timer, None)
exceptions.AttributeError: 'StatusAggregatorTestCase' object has no attribute 'assertIs'
===============================================================================
[ERROR]: tests.status.test_aggregator.StatusAggregatorTestCase.test_queue_done_resets_status_and_hides_progressbar

Traceback (most recent call last):
  File "/home/facundo/canonical/u1-client/stable-1-6--more-simult-transfers/tests/status/test_aggregator.py", line 1375, in test_queue_done_resets_status_and_hides_progressbar
    self.assertStatusReset()
  File "/home/facundo/canonical/u1-client/stable-1-6--more-simult-transfers/tests/status/test_aggregator.py", line 1205, in assertStatusReset
    self.assertIs(self.aggregator.queue_done_timer, None)
exceptions.AttributeError: 'StatusAggregatorTestCase' object has no attribute 'assertIs'
===============================================================================
[ERROR]: tests.status.test_aggregator.StatusAggregatorTestCase.test_upload_started_cancels_timer

Traceback (most recent call last):
  File "/home/facundo/canonical/u1-client/stable-1-6--more-simult-transfers/tests/status/test_aggregator.py", line 1403, in test_upload_started_cancels_timer
    self.assertIs(self.aggregator.queue_done_timer, None)
exceptions.AttributeError: 'StatusAggregatorTestCase' object has no attribute 'assertIs'
-------------------------------------------------------------------------------

Tags: chicharra

Related branches

Changed in ubuntuone-client:
assignee: nobody → Alejandro J. Cura (alecu)
tags: added: chicharra
Revision history for this message
Alejandro J. Cura (alecu) wrote :

As assertIs is new to the stdlib of python2.7, it breaks the tests when run on Maverick or previous versions that lack python2.7

To fix this I'll use assertIdentical, that's part of trial since at least twisted 8.0

Changed in ubuntuone-client:
status: Confirmed → Fix Committed
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.