nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 397 forks source link

Change in Python3.10 from collections.Callable to collections.abc.Callable #1122

Open CarloCogni opened 2 years ago

CarloCogni commented 2 years ago

As of Python 3.10, collections.Callable as been replaced with collections.abs.Callable.

This will make nose crash with an AttributeError.

EwoutH commented 2 years ago

I'm encountering the same problem here in our CI setup.

CarloCogni commented 2 years ago

@EwoutH, I just changed the code in the installed package (perhaps not elegant, but simple and quick)

ppizarror commented 1 year ago

Same issue here, https://github.com/ppizarror/pygame-menu/runs/7719197346?check_suite_focus=true

alonbl commented 1 year ago

Last commit 7 years ago, is this component maintained?

jnns commented 1 year ago

@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.

dirkf commented 1 year ago

1099

adiroiban commented 1 year ago

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))