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