man-group / pytest-plugins

A grab-bag of nifty pytest plugins
MIT License
568 stars 85 forks source link

Incompatible with Python 3.10 #197

Closed mcepl closed 1 week ago

mcepl commented 2 years ago

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.

eeaston commented 2 years ago

Thanks for raising! We'll get this fixed.

dasm commented 2 years ago

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?

anubhav96gupta commented 2 years ago

Is there any time frame for this release?

DanielNoord commented 2 years ago

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

DanielNoord commented 1 year ago

@eeaston Gentle ping on this issue!

jonbannister commented 1 week ago

This has been released with 1.8.0, thanks for your patience.