From c74364809e1958eabb20546070dc17fcf1be947d Mon Sep 17 00:00:00 2001 From: samus_ Date: Sun, 5 Oct 2008 18:32:39 +0000 Subject: [PATCH] removing utf-16 xpathselector_iternodes testcase since the problem comes from UnicodeDammit's conversion meaning that the results of the test are misleading --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40304 --- .../tests/sample_data/feeds/feed-sample3.xml | Bin 8028 -> 0 bytes scrapy/trunk/scrapy/tests/test_utils_xml.py | 7 ------- 2 files changed, 7 deletions(-) delete mode 100644 scrapy/trunk/scrapy/tests/sample_data/feeds/feed-sample3.xml diff --git a/scrapy/trunk/scrapy/tests/sample_data/feeds/feed-sample3.xml b/scrapy/trunk/scrapy/tests/sample_data/feeds/feed-sample3.xml deleted file mode 100644 index ddbe8d4db746aabb1f602d62e2ec7cc16676252f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8028 zcmeI1-*eJH5Xbk~zaryQJC5mQoC0i+{ZO{qE&TOOnzb z2l|l70O4+LcW>|RlfBEI-+^q%m7GggJozbYiDV!hxsaZ$%X9IiC`4O;UB#^M|}sfZQK=6J3#G5?5__C>(GAN(u-Kf8}wlh z^*%iCWeuJL&}BUc&{x`O!<%jSEIU%i#cvN9OVH`57mUad{(9(F1nB`TetU8#pX38t ze8fGY>f!#YyhYib)No&vEtR0viLC%_N9Y6l*ny@9_Osh1WdpQ2hvy;M9>u*eBatkh zjx!}f*e}4}2zS{LXG}|p$R1%Fi}D@5hZ@T?i|lQ(d@@%$7(2#%6&5%HmsAsHmaQ@K z%=|l&V@RKgrKXOCt5TuC2KWsDsk%g^%y@otkz) z2+kF=4n3?^dNI*sdvce*0eaHVk!xsl$R(17V?jEYxq7ptit(o%Qiv9A*G-q0_N5dn zCG~wm(EIXp1*>H-{G_FvpO&jG`N_z--eVT~m+-+)RGxFhV{sxO(rT1mR&O4>~il|0kWzK5aTn zc1!29jFLGUbKd?8J|?qD!&7EcAwDLv%PD#@XH3g5>&Tp$j~|0%qbD--F(g~VPHZuG zrnQul%r(huWL=VsCqQm8&1LNG()avsX;woP$1?^)o;0>4nPqpvb+lt9!(FM}Z*QZ_ zW`>4s=Coq6v(D)@i*7Z|t2r*ync%!Lv^6~0{e@&`)>6(j_gph$=#p!d3>MilnfsqV zRu-~@Hu)Gy#FM>jw(V-x#{H0C)hT}Y4#1ojns!^r%SbQofVrc#XK)QYNuz8NHTE>r zad)~LDCq3qk9N!r*W9#B=OhI|YtgopOd~?S41lgp#?+!O7+bps%y9@DD;+v*W WqdtC8p7-!G!1?8u(|c*|-Twj(Idhu; diff --git a/scrapy/trunk/scrapy/tests/test_utils_xml.py b/scrapy/trunk/scrapy/tests/test_utils_xml.py index 1167c3667..fd59a446b 100644 --- a/scrapy/trunk/scrapy/tests/test_utils_xml.py +++ b/scrapy/trunk/scrapy/tests/test_utils_xml.py @@ -27,13 +27,6 @@ class UtilsXmlTestCase(unittest.TestCase): self.assertEqual(attrs, [(['001'], ['Name 1'], ['Type 1']), (['002'], ['Name 2'], ['Type 2'])]) - def test_iterator_utf16(self): - samplefile = os.path.join(os.path.abspath(os.path.dirname(__file__)), "sample_data", "feeds", "feed-sample3.xml") - body = open(samplefile).read() - response = Response(domain="example.com", url="http://example.com", headers={"Content-type": "text/xml; encoding=UTF-16"}, body=body) - self.assertEqual([x.x("@id").extract() for x in xpathselector_iternodes(response, 'product')], - [['34017532'], ['34017557'], ['34017563'], ['34018057'], ['34018313'], ['34018599']]) - def test_iterator_text(self): body = u"""onetwo"""