TextTestRunner uses str(test) which cannot be tweaked easily as it is a descriptor

Bug #938336 reported by Robert Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Incomplete
Medium
Unassigned

Bug Description

This makes folk question whether testscenarios works (which depends on clone_test_with_new_id) when using the stock TextTestRunner.

Revision history for this message
Robert Collins (lifeless) wrote :

Note too that because __str__ is privileged, http://docs.python.org/reference/datamodel.html#invoking-descriptors will be relevant to fixing this issue. Unless we can get voidspace to revert his change and use a named method.

Revision history for this message
Robert Collins (lifeless) wrote :
Revision history for this message
Robert Collins (lifeless) wrote :
Changed in testtools:
status: New → Triaged
importance: Undecided → High
summary: - unittest2 uses str(test) not test.id()
+ TextTestRunner uses str(test) which cannot be tweaked easily as it is a
+ descriptor
description: updated
Revision history for this message
Robert Collins (lifeless) wrote :
Changed in testtools:
importance: High → Medium
Revision history for this message
Jonathan Lange (jml) wrote :

It's not clear to me how this is a bug in testtools, since we don't actually have a TextTestRunner class.

Changed in testtools:
status: Triaged → Incomplete
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.