pytest-plugins icon indicating copy to clipboard operation
pytest-plugins copied to clipboard

Incompatible with Python 3.10

Open mcepl opened this issue 3 years ago • 5 comments

Python 3.10 finally really eliminated all those classes in collections package which were long time ago moved to collections.abc. So, from collections import Iterable truly ceased to work.

This patch:

---
 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,7 @@
-from collections import Iterable
+try:
+    from collections.abc import Iterable
+except (ImportError, ModuleNotFoundError):
+    from collections import Iterable
 from six import string_types, text_type

fixes the problem.

mcepl avatar Jan 10 '22 16:01 mcepl

Thanks for raising! We'll get this fixed.

eeaston avatar Jan 28 '22 14:01 eeaston

It's actually fixed by now. It hasn't been released yet: https://github.com/man-group/pytest-plugins/blob/master/pytest-verbose-parametrize/pytest_verbose_parametrize.py#L1

Any hope to get a release?

dasm avatar Mar 30 '22 17:03 dasm

Is there any time frame for this release?

anubhav96gupta avatar Oct 11 '22 12:10 anubhav96gupta

@eeaston Is there any chance of a release? Or do you need help fixing/reviewing anything that is blocking a release?

DanielNoord avatar Oct 22 '22 12:10 DanielNoord

@eeaston Gentle ping on this issue!

DanielNoord avatar Feb 22 '23 15:02 DanielNoord