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
Flexmock doesn't work correctly with unittest.expectedFailure decorator. If a test is marked with expectedFailure and flexmock assertions fail, the test fails due to unexpected success.
Running the above code produces the following output:
> python -m unittest tests/test_unittest.py
u
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (unexpected successes=1)
The text was updated successfully, but these errors were encountered:
Flexmock doesn't work correctly with
unittest.expectedFailure
decorator. If a test is marked withexpectedFailure
and flexmock assertions fail, the test fails due to unexpected success.https://docs.python.org/3/library/unittest.html#unittest.expectedFailure
We should hook flexmock into
addUnexpectedSuccess
andaddExpectedFailure
.Test case to reproduce the issue:
Running the above code produces the following output:
The text was updated successfully, but these errors were encountered: