mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 14:48:49 +00:00
The test test_get_valid_history_without_current fails when using pytest v8.x in the following manner: AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô'] AssertionError: assert ['ls cat'] == ['ls cat', 'café ô'] AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô'] AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô'] The issue stems from the function thefuck/utils.py:get_all_executables() and seems to be related to the memoization decorator used. Disable memoization the failing tests with the fixture 'no_meomize' to resolve the issue.