AttributeError: 'ThreadsafeForwardingResult' object has no attribute 'progress' - does not support the progress protocol.

Bug #1019165 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Testrepository
Invalid
Critical
Robert Collins
testtools
Fix Released
High
Robert Collins

Bug Description

Running testr load I get the following exception:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testsuite.py", line 100, in _run_test
    test.run(process_result)
  File "/usr/lib/python2.7/dist-packages/subunit/__init__.py", line 1171, in run
    protocol.lineReceived(line)
  File "/usr/lib/python2.7/dist-packages/subunit/__init__.py", line 560, in lineReceived
    self._state.lineReceived(line)
  File "/usr/lib/python2.7/dist-packages/subunit/__init__.py", line 254, in lineReceived
    self.parser._handleProgress(offset, line)
  File "/usr/lib/python2.7/dist-packages/subunit/__init__.py", line 541, in _handleProgress
    self.client.progress(delta, whence)
  File "/usr/lib/python2.7/dist-packages/testtools/testresult/real.py", line 621, in progress
    return method(offset, whence)
  File "/usr/lib/python2.7/dist-packages/testtools/testresult/real.py", line 710, in progress
    return self.decorated.progress(offset, whence)
AttributeError: 'ThreadsafeForwardingResult' object has no attribute 'progress'

gwenhwyvar:~/src/bzr% dpkg -l testrepository python-subunit python-testtools
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Beschreibung
+++-==============-==============-============================================
ii python-subunit 0.0.8+bzr176-1 unit testing protocol - Python bindings to g
ii python-testtoo 0.9.14+bzr264~ Extensions to the Python unittest library
ii testrepository 0.0.5+bzr153~p Test result manager

Related branches

Jelmer Vernooij (jelmer)
affects: subunit → testrepository
Revision history for this message
Robert Collins (lifeless) wrote :

I don't. Please confirm that this isn't just incompatible versions of packages.

Changed in testrepository:
status: New → Incomplete
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I can still reproduce this with the trunk of testtools, subunit and testrepository. To reproduce:

charis:/tmp/bug-1019165% testr init
charis:/tmp/bug-1019165% cat >testoutput.subunit
progress: +1
progress: -1
progress: 10
charis:/tmp/bug-1019165% cat >.testr.conf
[DEFAULT]
test_command=cat testoutput.subunit $IDOPTION $LISTOPT
test_id_option=--load-list $IDFILE
test_list_option=--list
charis:/tmp/bug-1019165% testr run
running=cat testoutput.subunit
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/jelmer/src/testtools/trunk/testtools/testsuite.py", line 100, in _run_test
    test.run(process_result)
  File "/home/jelmer/src/subunit/trunk/python/subunit/__init__.py", line 1171, in run
    protocol.lineReceived(line)
  File "/home/jelmer/src/subunit/trunk/python/subunit/__init__.py", line 560, in lineReceived
    self._state.lineReceived(line)
  File "/home/jelmer/src/subunit/trunk/python/subunit/__init__.py", line 254, in lineReceived
    self.parser._handleProgress(offset, line)
  File "/home/jelmer/src/subunit/trunk/python/subunit/__init__.py", line 541, in _handleProgress
    self.client.progress(delta, whence)
  File "/home/jelmer/src/testtools/trunk/testtools/testresult/real.py", line 621, in progress
    return method(offset, whence)
  File "/home/jelmer/src/subunit/trunk/python/subunit/test_results.py", line 194, in progress
    return self.decorated.progress(offset, whence)
  File "/home/jelmer/src/testtools/trunk/testtools/testresult/real.py", line 621, in progress
    return method(offset, whence)
  File "/home/jelmer/src/testtools/trunk/testtools/testresult/real.py", line 710, in progress
    return self.decorated.progress(offset, whence)
AttributeError: 'ThreadsafeForwardingResult' object has no attribute 'progress'

PASSED (id=0)

Changed in testrepository:
status: Incomplete → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

Thanks.

Changed in testtools:
status: New → Triaged
Changed in testrepository:
status: Confirmed → Triaged
importance: Undecided → Critical
Changed in testtools:
importance: Undecided → High
summary: AttributeError: 'ThreadsafeForwardingResult' object has no attribute
- 'progress'
+ 'progress' - does not support the progress protocol.
Changed in testrepository:
assignee: nobody → Robert Collins (lifeless)
Revision history for this message
Robert Collins (lifeless) wrote :

(not actually a testrepository bug, but left task there for discovery)

Changed in testrepository:
status: Triaged → Invalid
Changed in testtools:
assignee: nobody → Robert Collins (lifeless)
milestone: none → next
status: Triaged → Fix Committed
Changed in testtools:
status: Fix Committed → 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.