nose3 is a port of nose that is more actively maintained. It says it does not support Python 3.11, but it is enough and the simplest way to get the tests running on Python 3.11. Otherwise, we will encounter the following error:
======================================================================
ERROR: <nose.suite.ContextSuite context=test_file_recognizer>
test suite for <module 'test_file_recognizer' from '/build/source/tests/test_file_recognizer.py'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nix/store/2cvn5s3phk0d4la2sl8lw25z7rlisa42-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/suite.py", line 209, in run
self.setUp()
File "/nix/store/2cvn5s3phk0d4la2sl8lw25z7rlisa42-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/suite.py", line 292, in setUp
self.setupContext(ancestor)
File "/nix/store/2cvn5s3phk0d4la2sl8lw25z7rlisa42-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/suite.py", line 315, in setupContext
try_run(context, names)
File "/nix/store/2cvn5s3phk0d4la2sl8lw25z7rlisa42-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/util.py", line 453, in try_run
inspect.getargspec(func)
^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'
----------------------------------------------------------------------
Ran 0 tests in 0.015s
nose3 is a port of nose that is more actively maintained. It says it does not support Python 3.11, but it is enough and the simplest way to get the tests running on Python 3.11. Otherwise, we will encounter the following error: