Accepting request 682761 from home:jayvdb:py-check-failures

- Add test_modified-fixup.patch to re-enable the test
- Remove build dependency on pytest-runner
- Update to v3.0.8
  * Fix quoting of bytestrings

OBS-URL: https://build.opensuse.org/request/show/682761
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=32
This commit is contained in:
Tomáš Chvátal 2019-03-08 11:22:11 +00:00 committed by Git OBS Bridge
parent eb6e21510a
commit 3a225446aa
5 changed files with 30 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:76fa03846e05358ae33d772405cb3a3d9e3a3f80dd5530c406385df31aefdf3a
size 628999

3
Paste-3.0.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c4f13993e6ab4a38602cef298d876552083e8215685bb45abda7113f0dd48117
size 631298

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Mar 8 09:27:42 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Add test_modified-fixup.patch to re-enable the test
- Remove build dependency on pytest-runner
- Update to v3.0.8
* Fix quoting of bytestrings
-------------------------------------------------------------------
Tue Mar 5 19:12:58 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -19,14 +19,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Paste
Version: 3.0.7
Version: 3.0.8
Release: 0
Summary: Tools for using a Web Server Gateway Interface stack
License: MIT
Group: Development/Languages/Python
URL: https://github.com/cdent/paste
Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
BuildRequires: %{python_module pytest-runner}
Patch0: test_modified-fixup.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six > 1.4.0}
@ -53,6 +53,8 @@ interfaces.
%prep
%setup -q -n Paste-%{version}
%patch0 -p1
sed -i '/pytest-runner/d' setup.py
# remove test requiring internet access
rm tests/test_proxy.py
@ -64,7 +66,7 @@ rm tests/test_proxy.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not test_modified'
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%license docs/license.txt

14
test_modified-fixup.patch Normal file
View File

@ -0,0 +1,14 @@
diff -ru Paste-3.0.8-orig/tests/test_fileapp.py Paste-3.0.8/tests/test_fileapp.py
--- Paste-3.0.8-orig/tests/test_fileapp.py 2019-02-28 22:09:41.000000000 +0700
+++ Paste-3.0.8/tests/test_fileapp.py 2019-03-08 17:40:52.558943604 +0700
@@ -96,7 +96,9 @@
res = harness.get("/",status=400,
headers={'if-modified-since':
'Thu, 22 Dec 3030 01:01:01 GMT'})
- assert 400 == res.status and b"check your system clock" in res.body
+ assert 400 == res.status and (
+ b"check your system clock" in res.body or
+ b"ill-formed timestamp" in res.body)
def test_file():
tempfile = "test_fileapp.%s.txt" % (random.random())