https://bugzilla.redhat.com/show_bug.cgi?id=2275412
Bug ID: 2275412
Summary: thefuck fails to build with pytest 8: AssertionError:
assert ['ls cat', 'diff x'] == ['ls cat',
'diff x',
'café ô']
Product: Fedora
Version: rawhide
Status: NEW
Component: thefuck
Assignee: arthur(a)bols.dev
Reporter: thrnciar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: arthur(a)bols.dev,
epel-packagers-sig(a)lists.fedoraproject.org,
mhroncok(a)redhat.com, mkreder(a)gmail.com,
thrnciar(a)redhat.com
Blocks: 2256331
Target Milestone: ---
Link ID: Github nvbn/thefuck/issues/1438
Classification: Fedora
thefuck fails to build with pytest 8.
=================================== FAILURES
===================================
_ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[le
cat-result0] _
self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at
0x7ff8d6cf24e0>
script = 'le cat', result = ['ls cat', 'diff x', 'café
ô']
@pytest.mark.parametrize('script, result', [
('le cat', ['ls cat', 'diff x', u'café ô']),
('diff x', ['ls cat', u'café ô']),
('fuck', ['ls cat', 'diff x', u'café ô']),
(u'cafe ô', ['ls cat', 'diff x', u'café ô']),
])
def test_get_valid_history_without_current(self, script, result):
command = Command(script, '')
assert get_valid_history_without_current(command) == result
E AssertionError: assert ['ls cat', 'diff x'] == ['ls
cat', 'diff x',
'café ô']
E
E Right contains one more item: 'café ô'
E
E Full diff:
E [
E 'ls cat',
E 'diff x',
E - 'café ô',
E ]
/builddir/build/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
_ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[diff
x-result1] _
self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at
0x7ff8d6cf2f00>
script = 'diff x', result = ['ls cat', 'café ô']
@pytest.mark.parametrize('script, result', [
('le cat', ['ls cat', 'diff x', u'café ô']),
('diff x', ['ls cat', u'café ô']),
('fuck', ['ls cat', 'diff x', u'café ô']),
(u'cafe ô', ['ls cat', 'diff x', u'café ô']),
])
def test_get_valid_history_without_current(self, script, result):
command = Command(script, '')
assert get_valid_history_without_current(command) == result
E AssertionError: assert ['ls cat'] == ['ls cat', 'café
ô']
E
E Right contains one more item: 'café ô'
E
E Full diff:
E [
E 'ls cat',
E - 'café ô',
E ]
/builddir/build/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
_
TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[fuck-result2]
_
self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at
0x7ff8d6cf3260>
script = 'fuck', result = ['ls cat', 'diff x', 'café
ô']
@pytest.mark.parametrize('script, result', [
('le cat', ['ls cat', 'diff x', u'café ô']),
('diff x', ['ls cat', u'café ô']),
('fuck', ['ls cat', 'diff x', u'café ô']),
(u'cafe ô', ['ls cat', 'diff x', u'café ô']),
])
def test_get_valid_history_without_current(self, script, result):
command = Command(script, '')
assert get_valid_history_without_current(command) == result
E AssertionError: assert ['ls cat', 'diff x'] == ['ls
cat', 'diff x',
'café ô']
E
E Right contains one more item: 'café ô'
E
E Full diff:
E [
E 'ls cat',
E 'diff x',
E - 'café ô',
E ]
/builddir/build/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
_ TestGetValidHistoryWithoutCurrent.test_get_valid_history_without_current[cafe
\xf4-result3] _
self = <tests.test_utils.TestGetValidHistoryWithoutCurrent object at
0x7ff8d6cf0050>
script = 'cafe ô', result = ['ls cat', 'diff x', 'café
ô']
@pytest.mark.parametrize('script, result', [
('le cat', ['ls cat', 'diff x', u'café ô']),
('diff x', ['ls cat', u'café ô']),
('fuck', ['ls cat', 'diff x', u'café ô']),
(u'cafe ô', ['ls cat', 'diff x', u'café ô']),
])
def test_get_valid_history_without_current(self, script, result):
command = Command(script, '')
assert get_valid_history_without_current(command) == result
E AssertionError: assert ['ls cat', 'diff x'] == ['ls
cat', 'diff x',
'café ô']
E
E Right contains one more item: 'café ô'
E
E Full diff:
E [
E 'ls cat',
E 'diff x',
E - 'café ô',
E ]
/builddir/build/BUILD/thefuck-3.32/tests/test_utils.py:276: AssertionError
=============================== warnings summary
===============================
../../../../usr/lib/python3.12/site-packages/zombie_imp/__init__.py:1
/usr/lib/python3.12/site-packages/zombie_imp/__init__.py:1:
DeprecationWarning: the imp module was removed in favour of importlib. Someone
brought it back, but it's not a good idea to use it.
from .imp_3_11 import *
../../../../usr/lib/python3.12/site-packages/_pytest/fixtures.py:1314
/usr/lib/python3.12/site-packages/_pytest/fixtures.py:1314:
PytestRemovedIn9Warning: Marks applied to fixtures have no effect
See docs:
https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-...
return fixture_marker(fixture_function)
tests/rules/test_dirty_untar.py: 270 warnings
/usr/lib64/python3.12/tarfile.py:2221: DeprecationWarning: Python 3.14 will,
by default, filter extracted tar archives and reject files or modify their
metadata. Use the filter argument to control this behavior.
warnings.warn(
tests/test_conf.py::test_get_user_dir_path[True-~/.config-~/.thefuck]
/builddir/build/BUILD/thefuck-3.32/thefuck/conf.py:52: UserWarning: Config
path /builddir/.thefuck is deprecated. Please move to /builddir/.config/thefuck
warn(u'Config path {} is deprecated. Please move to {}'.format(
tests/test_conf.py::test_get_user_dir_path[True-/user/test/config/-~/.thefuck]
/builddir/build/BUILD/thefuck-3.32/thefuck/conf.py:52: UserWarning: Config
path /builddir/.thefuck is deprecated. Please move to /user/test/config/thefuck
warn(u'Config path {} is deprecated. Please move to {}'.format(
-- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info
============================
FAILED
tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[le
cat-result0]
FAILED
tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[diff
x-result1]
FAILED
tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[fuck-result2]
FAILED
tests/test_utils.py::TestGetValidHistoryWithoutCurrent::test_get_valid_history_without_current[cafe
\xf4-result3]
=========== 4 failed, 1793 passed, 62 skipped, 274 warnings in 2.99s
===========
https://docs.pytest.org/en/stable/changelog.html
For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-ra...
For all our attempts to build thefuck with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/thefuck/
Let us know here if you have any questions.
Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora
Change
proposal
https://fedoraproject.org/wiki/Changes/Pytest_8
We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work
around it on our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2256331
[Bug 2256331] pytest-8.1.1 is available
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2275412
Report this comment as SPAM:
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=rep...