15
0

Accepting request 1073518 from home:pgajdos:python

- do not require python-six
- added patches
  fix f3170d40a6
  + python-cheroot-no-six.patch

OBS-URL: https://build.opensuse.org/request/show/1073518
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=52
This commit is contained in:
2023-03-21 20:43:52 +00:00
committed by Git OBS Bridge
parent 28648c6072
commit 12affebae8
3 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
index 8ff3b02ced..b4030da6fd 100644
--- a/cheroot/test/_pytest_plugin.py
+++ b/cheroot/test/_pytest_plugin.py
@@ -8,7 +8,6 @@
__metaclass__ = type
import pytest
-import six
pytest_version = tuple(map(int, pytest.__version__.split('.')))
@@ -46,9 +45,6 @@ def pytest_load_initial_conftests(early_config, parser, args):
'pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception',
))
- if six.PY2:
- return
-
# NOTE: `ResourceWarning` does not exist under Python 2 and so using
# NOTE: it in warning filters results in an `_OptionError` exception
# NOTE: being raised.