You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using pytest 8.3.3. in an Ubuntu 20.04 WSL system. When I try to run pytest, before even any test is loaded, I get a crash that looks like this:
File "/usr/lib/python3.10/argparse.py", line 1447, in add_argument
raise ValueError('%r is not callable' % (type_func,))
ValueError: 'int' is not callable
Going back through the trace I find that it originates in _pytest/config/argparsing.py, specifically at line 131:
arggroup.add_argument(*n, **a)
Printing out the contents of n and a the line before, it crashes on:
['--element-number']{'action': 'store','type': 'int','default': 20,'help': 'defines how many elements will display in a result','dest': 'element_number'}
apparently because 'type' is a string rather than the function int. If I replace the value before, pytest works. Any clue what causes this?
The text was updated successfully, but these errors were encountered:
I am using pytest 8.3.3. in an Ubuntu 20.04 WSL system. When I try to run
pytest
, before even any test is loaded, I get a crash that looks like this:Going back through the trace I find that it originates in
_pytest/config/argparsing.py
, specifically at line 131:Printing out the contents of
n
anda
the line before, it crashes on:apparently because
'type'
is a string rather than the functionint
. If I replace the value before, pytest works. Any clue what causes this?The text was updated successfully, but these errors were encountered: