which gives the following stacktrace (path information stripped):
ERROR: test suite for <module 'test.nose_test' from '/tmp/nose_test.py'>
----------------------------------------------------------------------
Traceback (most recent call last):
File ".../python3.7/site-packages/nose/suite.py", line 209, in run
self.setUp()
File ".../python3.7/site-packages/nose/suite.py", line 292, in setUp
self.setupContext(ancestor)
File ".../python3.7/site-packages/nose/suite.py", line 315, in setupContext
try_run(context, names)
File "../lib/python3.7/site-packages/nose/util.py", line 453, in try_run
inspect.getargspec(func)
File ".../lib/python3.7/inspect.py", line 1082, in getargspec
raise ValueError("Function has keyword-only parameters or annotations"
ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them
----------------------------------------------------------------------
Ran 0 tests in 0.001s
FAILED (errors=1)
Comes from nose.util:try_run. I'm not sure what I'd suggest doing about it while supporting Python 2.
Example:
It happens for
setup_module()
andteardown_module()
but not e.g.test_something()
.To repro:
which gives the following stacktrace (path information stripped):
Comes from nose.util:try_run. I'm not sure what I'd suggest doing about it while supporting Python 2.