Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/webob/files: webob-1.0.7-tests.patch
Date: Sat, 30 Apr 2011 16:52:15
Message-Id: 20110430165204.51EDE20057@flycatcher.gentoo.org
1 arfrever 11/04/30 16:52:04
2
3 Added: webob-1.0.7-tests.patch
4 Log:
5 Fix tests.
6
7 (Portage version: 2.2.0_alpha30_p21/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-python/webob/files/webob-1.0.7-tests.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/webob/files/webob-1.0.7-tests.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/webob/files/webob-1.0.7-tests.patch?rev=1.1&content-type=text/plain
14
15 Index: webob-1.0.7-tests.patch
16 ===================================================================
17 https://bitbucket.org/ianb/webob/issue/11
18 https://bitbucket.org/ianb/webob/changeset/145b64e724eb
19
20 --- tests/test_misc.py
21 +++ tests/test_misc.py
22 @@ -130,7 +130,8 @@
23
24
25 def test_multidict_cgi():
26 - fs = cgi.FieldStorage()
27 + env = {'QUERY_STRING': ''}
28 + fs = cgi.FieldStorage(environ=env)
29 fs.filename = '\xc3\xb8'
30 plain = MultiDict(key='\xc3\xb8', fs=fs)
31 ua = UnicodeMultiDict(multi=plain, encoding='utf-8')
32 --- tests/test_multidict.py
33 +++ tests/test_multidict.py
34 @@ -187,7 +187,8 @@
35 d = self._get_instance()
36 d.decode_keys = True
37
38 - fs = cgi.FieldStorage()
39 + env = {'QUERY_STRING': ''}
40 + fs = cgi.FieldStorage(environ=env)
41 fs.name = 'a'
42 self.assertEqual(d._decode_value(fs).name, 'a')