dev-python/webob: remove unused patches

Closes: https://github.com/gentoo/gentoo/pull/2376

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger (asterix)
2016-09-20 18:55:54 +02:00
committed by David Seifert
parent 470cbb8975
commit 4c5ab75434
2 changed files with 0 additions and 51 deletions

View File

@@ -1,27 +0,0 @@
https://bitbucket.org/ianb/webob/issue/11
https://bitbucket.org/ianb/webob/changeset/145b64e724eb
--- tests/test_misc.py
+++ tests/test_misc.py
@@ -130,7 +130,8 @@
def test_multidict_cgi():
- fs = cgi.FieldStorage()
+ env = {'QUERY_STRING': ''}
+ fs = cgi.FieldStorage(environ=env)
fs.filename = '\xc3\xb8'
plain = MultiDict(key='\xc3\xb8', fs=fs)
ua = UnicodeMultiDict(multi=plain, encoding='utf-8')
--- tests/test_multidict.py
+++ tests/test_multidict.py
@@ -187,7 +187,8 @@
d = self._get_instance()
d.decode_keys = True
- fs = cgi.FieldStorage()
+ env = {'QUERY_STRING': ''}
+ fs = cgi.FieldStorage(environ=env)
fs.name = 'a'
self.assertEqual(d._decode_value(fs).name, 'a')

View File

@@ -1,24 +0,0 @@
From 3a2c16f2f72dbca5ddfce7f649daf426c2125fed Mon Sep 17 00:00:00 2001
From: Aaron DeVore <aaron.devore@gmail.com>
Date: Tue, 30 Oct 2012 11:55:30 -0700
Subject: [PATCH] Fix issue #75: depending on dict order in test_headers2
---
tests/test_request.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_request.py b/tests/test_request.py
index f219d36..3e38e7a 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -2662,7 +2662,7 @@ def test_headers2(self):
self.assertTrue(i in r.headers and
'HTTP_'+i.upper().replace('-', '_') in r.environ)
r.headers = {'Server':'Apache'}
- self.assertEqual(list(r.environ.keys()), ['a', 'HTTP_SERVER'])
+ self.assertEqual(set(r.environ.keys()), set(['a', 'HTTP_SERVER']))
def test_host_url(self):
# Request has a read only property host_url that combines several
--
1.8.1.6