forked from pool/python-pytest-verbose-parametrize
- 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
18 lines
438 B
Diff
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
|
|
|
|
|