diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2011-12-21 11:23:47 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2011-12-21 11:23:47 +0000 |
commit | c56834b8615046579d5cf6fa334fba3c36a93805 (patch) | |
tree | f7010e4b03bc5e68c3c665e7654d0ab35f039dc6 /dev-python/python-yadis/files | |
parent | Version bump, drop old (diff) | |
download | historical-c56834b8615046579d5cf6fa334fba3c36a93805.tar.gz historical-c56834b8615046579d5cf6fa334fba3c36a93805.tar.bz2 historical-c56834b8615046579d5cf6fa334fba3c36a93805.zip |
Replaced test patch with new one by Ian Delaney, bug 297111
Package-Manager: portage-2.1.10.41/cvs/Linux x86_64
Diffstat (limited to 'dev-python/python-yadis/files')
-rw-r--r-- | dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch b/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch index c073758fc3b6..bfb2463a6663 100644 --- a/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch +++ b/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch @@ -23,3 +23,52 @@ echo -n 'Running tests... ' if ! python ${YDIR}/yadis/test/runtests ; then +diff -ur python-yadis-1.1.0.orig/yadis/test/test_xri.py python-yadis-1.1.0/yadis/test/test_xri.py +--- yadis/test/test_xri.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/test/test_xri.py 2011-11-16 22:03:07.254992928 +0800 +@@ -45,7 +45,7 @@ + expected = 'l%C2%A1m' + self.failUnlessEqual(xri.iriToURI(s), expected) + else: +- def test_iri_to_url(self): ++ def test_iri_to_url2(self): + s = u'l\xa1m\U00101010n' + expected = 'l%C2%A1m%F4%81%80%90n' + self.failUnlessEqual(xri.iriToURI(s), expected) +diff -ur /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0.orig/yadis/etxrd.py /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0/yadis/etxrd.py +--- yadis/etxrd.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/etxrd.py 2011-11-16 22:26:21.386992510 +0800 +@@ -23,12 +23,12 @@ + from elementtree.ElementTree import ElementTree + + # Use expat if it's present. Otherwise, use xmllib +-try: +- from xml.parsers.expat import ExpatError as XMLError +- from elementtree.ElementTree import XMLTreeBuilder +-except ImportError: +- from elementtree.SimpleXMLTreeBuilder import TreeBuilder as XMLTreeBuilder +- from xmllib import Error as XMLError ++#try ++# from xml.parsers.expat import ExpatError as XMLError ++# from elementtree.ElementTree import XMLTreeBuilder ++#except ImportError: ++from elementtree.SimpleXMLTreeBuilder import TreeBuilder as XMLTreeBuilder ++from xmllib import Error as XMLError + + from yadis import xri + +diff -ur /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0.orig/yadis/test/test_etxrd.py /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0/yadis/test/test_etxrd.py +--- yadis/test/test_etxrd.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/test/test_etxrd.py 2011-11-16 22:29:00.896992462 +0800 +@@ -40,9 +40,9 @@ + def _getServices(self, flt=None): + return list(services.applyFilter(self.yadis_url, self.xmldoc, flt)) + +- def testParse(self): ++# def testParse(self): + """Make sure that parsing succeeds at all""" +- services = self._getServices() ++# services = self._getServices() + + def testParseOpenID(self): + """Parse for OpenID services with a transformer function""" |