1
0
Files
python-pytest-verbose-param…/Iterable-collections.patch
Matej Cepl b324a07f98 Accepting request 971924 from home:bnavigator:branches:devel:languages:python:pytest
- Add pytest-fixtures-pr171-remove-mock.patch because mock WAS
  required and is not pulled in anymore by something else
  -- gh#man-group/pytest-plugins#171
- Refresh Iterable-collections.patch for Python 2 compatibility

OBS-URL: https://build.opensuse.org/request/show/971924
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-verbose-parametrize?expand=0&rev=10
2022-04-22 05:17:55 +00:00

18 lines
438 B
Diff

---
pytest_verbose_parametrize.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- a/pytest_verbose_parametrize.py
+++ b/pytest_verbose_parametrize.py
@@ -1,4 +1,9 @@
-from collections import Iterable
+try:
+ from collections.abc import Iterable
+except ImportError:
+ from collections import Iterable
+except ModuleNotFoundError:
+ from collections import Iterable
from six import string_types, text_type