forked from pool/python-pytest-fixture-config
Accepting request 1041368 from home:pgajdos:python
- do not require six - added patches fix https://github.com/man-group/pytest-plugins/issues/209 + python-pytest-fixture-config-no-six.patch OBS-URL: https://build.opensuse.org/request/show/1041368 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-fixture-config?expand=0&rev=8
This commit is contained in:
18
python-pytest-fixture-config-no-six.patch
Normal file
18
python-pytest-fixture-config-no-six.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
Index: pytest-fixture-config-1.7.0/tests/unit/test_fixture_config.py
|
||||
===================================================================
|
||||
--- pytest-fixture-config-1.7.0.orig/tests/unit/test_fixture_config.py
|
||||
+++ pytest-fixture-config-1.7.0/tests/unit/test_fixture_config.py
|
||||
@@ -1,11 +1,11 @@
|
||||
import pytest
|
||||
-from six.moves import reload_module
|
||||
+from importlib import reload
|
||||
|
||||
# HACK: if the plugin is imported before the coverage plugin then all
|
||||
# the top-level code will be omitted from coverage, so force it to be
|
||||
# reloaded within this unit test under coverage
|
||||
import pytest_fixture_config
|
||||
-reload_module(pytest_fixture_config)
|
||||
+reload(pytest_fixture_config)
|
||||
|
||||
from pytest_fixture_config import Config, requires_config, yield_requires_config
|
||||
|
||||
Reference in New Issue
Block a user