landscape-client tests: AptFacadeTest.test_perform_changes_fetch_progress

Bug #897416 reported by David Britton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
High
Björn Tillenius

Bug Description

===============================================================================
[ERROR]: landscape.package.tests.test_facade.AptFacadeTest.test_perform_changes_fetch_progress

Traceback (most recent call last):
  File "/home/ubuntu/src/canonical/landscape-client/fix-openstack-tests/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/ubuntu/src/canonical/landscape-client/fix-openstack-tests/landscape/package/tests/test_facade.py", line 760, in test_perform_changes_fetch_progress
    for line in self.facade.perform_changes().splitlines()
  File "/home/ubuntu/src/canonical/landscape-client/fix-openstack-tests/landscape/package/facade.py", line 379, in perform_changes
    fetch_progress=apt.progress.text.AcquireProgress(fetch_output))
  File "/home/ubuntu/src/canonical/landscape-client/fix-openstack-tests/landscape/package/tests/test_facade.py", line 751, in commit
    fetch_progress.start()
  File "/usr/lib/python2.6/dist-packages/apt/progress/text.py", line 105, in start
    self._winch()
  File "/usr/lib/python2.6/dist-packages/apt/progress/text.py", line 113, in _winch
    buf = fcntl.ioctl(self._file, termios.TIOCGWINSZ, 8 * ' ')
exceptions.TypeError: argument must be an int, or have a fileno() method.
-------------------------------------------------------------------------------

This happened on an openstack instance. There could be a missing dependency, but if so it probably needs to be documented somewhere.

David Britton (dpb)
description: updated
Alberto Donato (ack)
tags: added: squad-gamma
Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 897416] [NEW] landscape-client tests: AptFacadeTest.test_perform_changes_fetch_progress

On Mon, Nov 28, 2011 at 08:54:00PM -0000, David Britton wrote:
> This happened on an openstack instance. There could be a missing
> dependency, but if so it probably needs to be documented somewhere.

No, it's not a missing dependency, it's just some differences in the
python API between lucid and oneiric. I'll try to take a look at this
today, unless someone else beats me to it.

tags: added: points-1 theme-apt
Changed in landscape-client:
importance: Undecided → High
milestone: none → 11.11.2
Changed in landscape-client:
assignee: nobody → Björn Tillenius (bjornt)
status: New → In Progress
Revision history for this message
Björn Tillenius (bjornt) wrote :

Fixed in r411 in trunk.

Changed in landscape-client:
status: In Progress → Fix Committed
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers