* [gentoo-commits] gentoo-x86 commit in dev-python/lxml/files: lxml-2.2.4-python-2.7.patch
@ 2009-11-21 18:23 Arfrever Frehtes Taifersar Arahesis (arfrever)
0 siblings, 0 replies; 2+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2009-11-21 18:23 UTC (permalink / raw
To: gentoo-commits
arfrever 09/11/21 18:23:52
Added: lxml-2.2.4-python-2.7.patch
Log:
Fix tests with Python 2.7 (bug #293892).
(Portage version: 14872-svn/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-python/lxml/files/lxml-2.2.4-python-2.7.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/files/lxml-2.2.4-python-2.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/files/lxml-2.2.4-python-2.7.patch?rev=1.1&content-type=text/plain
Index: lxml-2.2.4-python-2.7.patch
===================================================================
--- test.py
+++ test.py
@@ -75,6 +75,11 @@
set
except NameError:
from sets import Set as set
+try:
+ # Python >=2.7 and >=3.2
+ from unittest.runner import _TextTestResult
+except ImportError:
+ from unittest import _TextTestResult
__metaclass__ = type
@@ -302,14 +307,14 @@
return results
-class CustomTestResult(unittest._TextTestResult):
+class CustomTestResult(_TextTestResult):
"""Customised TestResult.
It can show a progress bar, and displays tracebacks for errors and failures
as soon as they happen, in addition to listing them all at the end.
"""
- __super = unittest._TextTestResult
+ __super = _TextTestResult
__super_init = __super.__init__
__super_startTest = __super.startTest
__super_stopTest = __super.stopTest
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-python/lxml/files: lxml-2.2.4-python-2.7.patch
@ 2010-05-13 13:01 Arfrever Frehtes Taifersar Arahesis (arfrever)
0 siblings, 0 replies; 2+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2010-05-13 13:01 UTC (permalink / raw
To: gentoo-commits
arfrever 10/05/13 13:01:02
Removed: lxml-2.2.4-python-2.7.patch
Log:
Delete older ebuild.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-13 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 13:01 [gentoo-commits] gentoo-x86 commit in dev-python/lxml/files: lxml-2.2.4-python-2.7.patch Arfrever Frehtes Taifersar Arahesis (arfrever)
-- strict thread matches above, loose matches on Subject: below --
2009-11-21 18:23 Arfrever Frehtes Taifersar Arahesis (arfrever)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox