forked from pool/python-cheroot
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:
22
python-cheroot-no-six.patch
Normal file
22
python-cheroot-no-six.patch
Normal 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.
|
||||
|
||||
Reference in New Issue
Block a user