fix: Cookie test falsely reports a failure for some python versions.
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
This commit is contained in:
parent
f4c1e33c4d
commit
ea9464d9f7
@ -0,0 +1,26 @@
|
||||
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
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: python-bottle
|
||||
Version: 0.12.13
|
||||
Release: 20
|
||||
Release: 21
|
||||
Summary: WSGI micro web-framework for Python.
|
||||
License: MIT
|
||||
URL: http://bottlepy.org
|
||||
@ -19,6 +19,7 @@ Patch0009: 0008-Fix-Multipart-file-uploads-with-empty-filename-not-d.patch
|
||||
Patch0010: 0009-Fix-for-Issue-586.patch
|
||||
Patch0011: 0010-Add-ServerAdapter-for-CherryPy-9.patch
|
||||
Patch0012: 0011-Added-cheroot-server-adapter-to-list-of-server-names.patch
|
||||
Patch0013: 0012-fix-Cookie-test-falsely-reports-a-failure-for-some-p.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
|
||||
|
||||
@ -73,6 +74,9 @@ sed -i '/^#!/d' bottle.py
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 30 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-21
|
||||
- fix: Cookie test falsely reports a failure for some python versions.
|
||||
|
||||
* Tue Jan 23 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-20
|
||||
- Added 'cheroot' server adapter to list of server names, so it can be selected from the command line and by name.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user