-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious error during debugging: 'Namespace' object has no attribute 'backend' #46
Comments
|
This code snippet in conftest.py seems to be related: def pytest_generate_tests(metafunc):
if "backend" in metafunc.fixturenames:
metafunc.parametrize(
"backend", [metafunc.config.getoption("backend")], scope="module"
) |
proposed solution will be as a commit in issue44 (#44) branch/PR: def pytest_generate_tests(metafunc):
if "backend" in metafunc.fixturenames:
try:
metafunc.parametrize(
"backend", [metafunc.config.getoption("backend")], scope="module"
)
except ValueError:
# some metafunc.config objects don't have an option "backend"
metafunc.parametrize(
"backend", ["default_backend"], scope="module"
) |
windiana42
added a commit
that referenced
this issue
Dec 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error appeared to me during debugging pytsql, then it vanished, and now it resurfaced:
It could be a problem of my pycharm installation, but this is the first repo where it happens.
I checked both python 3.11 and 3.10.
I tested pycharm 2022.2.1 and 2022.2.4
The text was updated successfully, but these errors were encountered: