27 lines
892 B
Diff
27 lines
892 B
Diff
From f0e6bc556dafe217c5612a06712bcf47c88ea5a2 Mon Sep 17 00:00:00 2001
|
|
From: Marcel Hellkamp <marc@gsites.de>
|
|
Date: Sun, 12 Jun 2022 18:55:19 +0200
|
|
Subject: [PATCH] fix: Cookie test falsely reports a failure for some python
|
|
versions.
|
|
|
|
---
|
|
test/test_environ.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/test_environ.py b/test/test_environ.py
|
|
index 3a9878a..9680dd1 100755
|
|
--- a/test/test_environ.py
|
|
+++ b/test/test_environ.py
|
|
@@ -624,7 +624,7 @@ class TestResponse(unittest.TestCase):
|
|
response.delete_cookie('name')
|
|
cookies = [value for name, value in response.headerlist
|
|
if name.title() == 'Set-Cookie']
|
|
- self.assertTrue('name=;' in cookies[0])
|
|
+ self.assertTrue('name=;' in cookies[0] or 'name="";' in cookies[0])
|
|
|
|
def test_set_header(self):
|
|
response = BaseResponse()
|
|
--
|
|
2.39.0.windows.2
|
|
|