Skip to content
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

Tests failures on aarch64 #1461

Open
ggardet opened this issue Aug 28, 2024 · 0 comments
Open

Tests failures on aarch64 #1461

ggardet opened this issue Aug 28, 2024 · 0 comments

Comments

@ggardet
Copy link

ggardet commented Aug 28, 2024

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

FILL THIS IN

Your system (Debian 7, ArchLinux, Windows, etc.):

3.32

How to reproduce the bug:

Build and run test on openSUSE Tumbleweed aarch64

Anything else you think is relevant:

Tests failures log:

[   27s] =================================== FAILURES ===================================
[   27s] _ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[le cat-result0] _
[   27s] 
[   27s] self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at 0xffff9729df50>
[   27s] script = 'le cat', result = ['ls cat', 'diff x', 'café ô']
[   27s] 
[   27s]     @pytest.mark.parametrize('script, result', [
[   27s]         ('le cat', ['ls cat', 'diff x', u'café ô']),
[   27s]         ('diff x', ['ls cat', u'café ô']),
[   27s]         ('fuck', ['ls cat', 'diff x', u'café ô']),
[   27s]         (u'cafe ô', ['ls cat', 'diff x', u'café ô']),
[   27s]     ])
[   27s]     def test_get_valid_history_without_current(self, script, result):
[   27s]         command = Command(script, '')
[   27s] >       assert get_valid_history_without_current(command) == result
[   27s] E       AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô']
[   27s] E         
[   27s] E         Right contains one more item: 'café ô'
[   27s] E         
[   27s] E         Full diff:
[   27s] E           [
[   27s] E               'ls cat',
[   27s] E               'diff x',
[   27s] E         -     'café ô',
[   27s] E           ]
[   27s] 
[   27s] /home/abuild/rpmbuild/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
[   27s] _ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[diff x-result1] _
[   27s] 
[   27s] self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at 0xffff9729e010>
[   27s] script = 'diff x', result = ['ls cat', 'café ô']
[   27s] 
[   27s]     @pytest.mark.parametrize('script, result', [
[   27s]         ('le cat', ['ls cat', 'diff x', u'café ô']),
[   27s]         ('diff x', ['ls cat', u'café ô']),
[   27s]         ('fuck', ['ls cat', 'diff x', u'café ô']),
[   27s]         (u'cafe ô', ['ls cat', 'diff x', u'café ô']),
[   27s]     ])
[   27s]     def test_get_valid_history_without_current(self, script, result):
[   27s]         command = Command(script, '')
[   27s] >       assert get_valid_history_without_current(command) == result
[   27s] E       AssertionError: assert ['ls cat'] == ['ls cat', 'café ô']
[   27s] E         
[   27s] E         Right contains one more item: 'café ô'
[   27s] E         
[   27s] E         Full diff:
[   27s] E           [
[   27s] E               'ls cat',
[   27s] E         -     'café ô',
[   27s] E           ]
[   27s] 
[   27s] /home/abuild/rpmbuild/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
[   27s] _ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[fuck-result2] _
[   27s] 
[   27s] self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at 0xffff9729e190>
[   27s] script = 'fuck', result = ['ls cat', 'diff x', 'café ô']
[   27s] 
[   27s]     @pytest.mark.parametrize('script, result', [
[   27s]         ('le cat', ['ls cat', 'diff x', u'café ô']),
[   27s]         ('diff x', ['ls cat', u'café ô']),
[   27s]         ('fuck', ['ls cat', 'diff x', u'café ô']),
[   27s]         (u'cafe ô', ['ls cat', 'diff x', u'café ô']),
[   27s]     ])
[   27s]     def test_get_valid_history_without_current(self, script, result):
[   27s]         command = Command(script, '')
[   27s] >       assert get_valid_history_without_current(command) == result
[   27s] E       AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô']
[   27s] E         
[   27s] E         Right contains one more item: 'café ô'
[   27s] E         
[   27s] E         Full diff:
[   27s] E           [
[   27s] E               'ls cat',
[   27s] E               'diff x',
[   27s] E         -     'café ô',
[   27s] E           ]
[   27s] 
[   27s] /home/abuild/rpmbuild/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
[   27s] _ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[cafe \xf4-result3] _
[   27s] 
[   27s] self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at 0xffff9750b450>
[   27s] script = 'cafe ô', result = ['ls cat', 'diff x', 'café ô']
[   27s] 
[   27s]     @pytest.mark.parametrize('script, result', [
[   27s]         ('le cat', ['ls cat', 'diff x', u'café ô']),
[   27s]         ('diff x', ['ls cat', u'café ô']),
[   27s]         ('fuck', ['ls cat', 'diff x', u'café ô']),
[   27s]         (u'cafe ô', ['ls cat', 'diff x', u'café ô']),
[   27s]     ])
[   27s]     def test_get_valid_history_without_current(self, script, result):
[   27s]         command = Command(script, '')
[   27s] >       assert get_valid_history_without_current(command) == result
[   27s] E       AssertionError: assert ['ls cat', 'diff x'] == ['ls cat', 'diff x', 'café ô']
[   27s] E         
[   27s] E         Right contains one more item: 'café ô'
[   27s] E         
[   27s] E         Full diff:
[   27s] E           [
[   27s] E               'ls cat',
[   27s] E               'diff x',
[   27s] E         -     'café ô',
[   27s] E           ]
[   27s] 
[   27s] /home/abuild/rpmbuild/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
[   27s] =============================== warnings summary ===============================
[   27s] thefuck/conf.py:1
[   27s]   /home/abuild/rpmbuild/BUILD/thefuck-3.32/thefuck/conf.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
[   27s]     from imp import load_source
[   27s] 
[   27s] ../../../../../usr/lib/python3.11/site-packages/_pytest/fixtures.py:1306
[   27s]   /usr/lib/python3.11/site-packages/_pytest/fixtures.py:1306: PytestRemovedIn9Warning: Marks applied to fixtures have no effect
[   27s]   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
[   27s]     return fixture_marker(fixture_function)
[   27s] 
[   27s] tests/test_conf.py::test_get_user_dir_path[True-~/.config-~/.thefuck]
[   27s]   /home/abuild/rpmbuild/BUILD/thefuck-3.32/thefuck/conf.py:51: UserWarning: Config path /home/abuild/.thefuck is deprecated. Please move to /home/abuild/.config/thefuck
[   27s]     warn(u'Config path {} is deprecated. Please move to {}'.format(
[   27s] 
[   27s] tests/test_conf.py::test_get_user_dir_path[True-/user/test/config/-~/.thefuck]
[   27s]   /home/abuild/rpmbuild/BUILD/thefuck-3.32/thefuck/conf.py:51: UserWarning: Config path /home/abuild/.thefuck is deprecated. Please move to /user/test/config/thefuck
[   27s]     warn(u'Config path {} is deprecated. Please move to {}'.format(
[   27s] 
[   27s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[   27s] =========================== short test summary info ============================
[   27s] FAILED tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[le cat-result0]
[   27s] FAILED tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[diff x-result1]
[   27s] FAILED tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[fuck-result2]
[   27s] FAILED tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[cafe \xf4-result3]
[   27s] ============ 4 failed, 1792 passed, 62 skipped, 4 warnings in 7.92s ============
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant