nose
nose copied to clipboard
Change in Python3.10 from collections.Callable to collections.abc.Callable
As of Python 3.10, collections.Callable as been replaced with collections.abs.Callable.
This will make nose crash with an AttributeError.
I'm encountering the same problem here in our CI setup.
@EwoutH, I just changed the code in the installed package (perhaps not elegant, but simple and quick)
Same issue here, https://github.com/ppizarror/pygame-menu/runs/7719197346?check_suite_focus=true
Last commit 7 years ago, is this component maintained?
@alonbl The project's website says:
Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.
#1099
I guess that we should all say goodby to nose
and try to move to nose2
Meanwhile, somewhere in the nose start script I have added the following hack. It just put back the aliases :)
for member in ['Callable', 'Iterable', 'Sequence']:
if not hasattr(collections, member):
setattr(collections, member, getattr(collections.abc, member))