Blob Blame History Raw
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 3a9878a26..9680dd1fe 100755
--- a/test/test_environ.py
+++ b/test/test_environ.py
@@ -624,7 +624,7 @@ def test_delete_cookie(self):
         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()