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
always returns False because disabled is either "0" or "1" (as strings) or Mark(...), depending on whether I use pytest.mark.qt_no_exception_capture or qt_no_exception_capture = 1, all of which evaluate to True.
Also, I would argue that in the presence of qt_no_exception_capture = 1, pytest.mark.qt_no_exception_capture(0) and pytest.mark.qt_no_exception_capture(False) should allow overriding the global setting.
Also, I would argue that in the presence of qt_no_exception_capture = 1, pytest.mark.qt_no_exception_capture(0) and pytest.mark.qt_no_exception_capture(False) should allow overriding the global setting.
I have found that
pytest-qt/src/pytestqt/exceptions.py
Lines 90 to 95 in cdad310
always returns
False
becausedisabled
is either"0"
or"1"
(as strings) orMark(...)
, depending on whether I usepytest.mark.qt_no_exception_capture
orqt_no_exception_capture = 1
, all of which evaluate toTrue
.Originally posted by @bersbersbers in #573 (comment)
Example code:
Then run
pip install -e . && pytest -s tests\test_bug.py
and see allFalse
.The text was updated successfully, but these errors were encountered: