drop unused buildrequire python-nose

This commit is contained in:
bzg1107 2022-01-05 21:13:43 +08:00
parent 15bebcf1ee
commit 51a5e505cc
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From f1d8e10936ab21089e5197df06f995b19b465ac0 Mon Sep 17 00:00:00 2001
From: bzg1107 <preloyalwhite@163.com>
Date: Wed, 5 Jan 2022 21:05:37 +0800
Subject: [PATCH] modify python3.9 supportive syntax
---
tests/conftest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index ec47c86..174aebf 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -60,7 +60,7 @@ def serve():
log.debug("shutting server down")
server.shutdown()
worker.join(1)
- if worker.isAlive():
+ if worker.is_alive():
log.warning('worker is hanged')
else:
log.debug("server stopped")
--
2.30.0

View File

@ -1,13 +1,14 @@
Name: python-webob Name: python-webob
Version: 1.8.7 Version: 1.8.7
Release: 1 Release: 2
Summary: WSGI request and response object Summary: WSGI request and response object
License: MIT License: MIT
URL: http://pythonpaste.org/webob/ URL: http://pythonpaste.org/webob/
Source0: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
Patch0: 0001-modify-python3.9-supportive-syntax.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel, python3-setuptools, python3-nose, python3-pytest BuildRequires: python3-devel, python3-setuptools, python3-pytest
%description %description
WebOb provides wrappers around the WSGI request environment, WebOb provides wrappers around the WSGI request environment,
@ -50,6 +51,9 @@ py.test-3 tests
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Tue Jan 11 2022 baizhonggui <baizhonggui@huawei.com> - 1.8.7-2
- Fix compat py3.9 syntax
* Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 1.8.7-1 * Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 1.8.7-1
- Upgrade to version 1.8.7 - Upgrade to version 1.8.7