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
a detailed description of the bug or problem you are having
I'd like to be able to pass a single function to a marker, for use in a fixture later.
I can pass any number of non-functions, like integers.
I can pass two functions, and presumably more.
But one function results in "TypeError: foo() takes 0 positional arguments but 1 was given"
output of pip list from the virtual environment you are using
$ pip list
Package Version
---------- -------
iniconfig 2.0.0
packaging 23.2
pip 23.3
pluggy 1.3.0
pytest 7.4.2
setuptools 65.5.0
pytest and operating system versions
Python 3.11, pytest 7.4.2, MacOS Ventura 13.0.1
minimal example if possible
pytest.ini
[pytest]
markers =
no_param: no parameters
one_param: one parameter
two_params: two parameters
I'd like to be able to pass a single function to a marker, for use in a fixture later.
I can pass any number of non-functions, like integers.
I can pass two functions, and presumably more.
But one function results in "TypeError: foo() takes 0 positional arguments but 1 was given"
pip list
from the virtual environment you are usingpytest and operating system versions
Python 3.11, pytest 7.4.2, MacOS Ventura 13.0.1
minimal example if possible
pytest.ini
test_marker.py
test_marker_one_func_param.py
0-2 integers, and 2 functions work fine
but one func blows up
The text was updated successfully, but these errors were encountered: