[Python-modules-team] Bug#981766: autopkg tests failing with setuptools 52.0

Matthias Klose doko at debian.org
Tue Feb 9 12:16:14 GMT 2021


Control: severity -1 serious

the sources read:

$ fgrep -r pytest .
./.travis.yml:    # disabled because nosetests is not supported on 3.9. We'll
move to pytest.

and indeed running the tests with nose fails.  It looks like the 1.3.0 version
has proper support for pytest.

======================================================================
ERROR: test suite for <module 'test.libregrtest' from
'/usr/lib/python3.9/test/libregrtest/__init__.py'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.9/inspect.py", line 1162, in getfullargspec
    sig = _signature_from_callable(func,
  File "/usr/lib/python3.9/inspect.py", line 2254, in _signature_from_callable
    raise TypeError('{!r} is not a callable object'.format(obj))
TypeError: <module 'test.libregrtest.setup' from
'/usr/lib/python3.9/test/libregrtest/setup.py'> is not a callable object

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/util.py", line 460, in try_run
    inspect.getargspec(func)
  File "/usr/lib/python3.9/inspect.py", line 1120, in getargspec
    getfullargspec(func)
  File "/usr/lib/python3.9/inspect.py", line 1171, in getfullargspec
    raise TypeError('unsupported callable') from ex
TypeError: unsupported callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/plugins/multiprocess.py", line 788,
in run
    self.setUp()
  File "/usr/lib/python3/dist-packages/nose/suite.py", line 292, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python3/dist-packages/nose/plugins/multiprocess.py", line 770,
in setupContext
    super(NoSharedFixtureContextSuite, self).setupContext(context)
  File "/usr/lib/python3/dist-packages/nose/suite.py", line 315, in setupContext
    try_run(context, names)
  File "/usr/lib/python3/dist-packages/nose/util.py", line 463, in try_run
    raise TypeError("Attribute %s of %r is not a python "
TypeError: Attribute setup of <module 'test.libregrtest' from
'/usr/lib/python3.9/test/libregrtest/__init__.py'> is not a python function.
Only functions or callables may be used as fixtures.

======================================================================
ERROR: test.support.testresult.get_test_runner_class
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
TypeError: get_test_runner_class() missing 1 required positional argument:
'verbosity'

======================================================================
ERROR: test.support.testresult.get_test_runner
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
TypeError: get_test_runner() missing 2 required positional arguments: 'stream'
and 'verbosity'

----------------------------------------------------------------------
Ran 46 tests in 8.480s

FAILED (SKIP=1, errors=3)
autopkgtest [00:23:33]: test command1: -----------------------]
autopkgtest [00:23:33]: test command1:  - - - - - - - - - - results - - - - - -
- - - -
command1             FAIL non-zero exit status 1



More information about the Python-modules-team mailing list