test.py fails with Python 2.7

Bug #486372 reported by Arfrever Frehtes Taifersar Arahesis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Fix Released
Low
scoder

Bug Description

test.py fails with Python 2.7:

$ python2.7 test.py
Traceback (most recent call last):
  File "test.py", line 305, in <module>
    class CustomTestResult(unittest._TextTestResult):
AttributeError: 'module' object has no attribute '_TextTestResult'

I'm attaching the patch, which fixes this problem.

Revision history for this message
Arfrever Frehtes Taifersar Arahesis (arfrever-fta) wrote :
Revision history for this message
scoder (scoder) wrote :

Committed in 2.2 branch rev. 69500:

https://codespeak.net/viewvc/?view=rev&revision=69500

Changed in lxml:
assignee: nobody → Stefan Behnel (scoder)
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
scoder (scoder) wrote :

Thanks!

Revision history for this message
scoder (scoder) wrote :

Fix released in lxml 2.2.5.

Changed in lxml:
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.