Bug 2353142 - python-dirty-equals fails to build with Python 3.14: test_is_ip_true: AssertionError: assert IPv6Network('::eeff:ae3f:d473/128') == IsIP()
Summary: python-dirty-equals fails to build with Python 3.14: test_is_ip_true: Asserti...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-dirty-equals
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-03-18 11:14 UTC by Karolina Surma
Modified: 2025-03-18 11:53 UTC (History)
8 users (show)

Fixed In Version: python-dirty-equals-0.9.0-3.fc43
Clone Of:
Environment:
Last Closed: 2025-03-18 11:53:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github samuelcolvin dirty-equals issues 112 0 None open Two test regressions related to IP addresses in Python 3.14 2025-03-18 11:44:01 UTC

Description Karolina Surma 2025-03-18 11:14:08 UTC
python-dirty-equals fails to build with Python 3.14.0a6.

________________________ test_is_ip_true[other1-dirty1] ________________________

other = IPv4Network('43.48.0.0/12'), dirty = IsIP()

    @pytest.mark.parametrize(
        'other,dirty',
        [
            (IPv4Address('127.0.0.1'), IsIP()),
            (IPv4Network('43.48.0.0/12'), IsIP()),
            (IPv6Address('::eeff:ae3f:d473'), IsIP()),
            (IPv6Network('::eeff:ae3f:d473/128'), IsIP()),
            ('2001:0db8:0a0b:12f0:0000:0000:0000:0001', IsIP()),
            ('179.27.154.96', IsIP),
            ('43.62.123.119', IsIP(version=4)),
            ('::ffff:2b3e:7b77', IsIP(version=6)),
            ('0:0:0:0:0:ffff:2b3e:7b77', IsIP(version=6)),
            ('54.43.53.219/10', IsIP(version=4, netmask='255.192.0.0')),
            ('::ffff:aebf:d473/12', IsIP(version=6, netmask='fff0::')),
            ('2001:0db8:0a0b:12f0:0000:0000:0000:0001', IsIP(version=6)),
            (3232235521, IsIP()),
            (b'\xc0\xa8\x00\x01', IsIP()),
            (338288524927261089654018896845572831328, IsIP(version=6)),
            (b'\x20\x01\x06\x58\x02\x2a\xca\xfe\x02\x00\x00\x00\x00\x00\x00\x01', IsIP(version=6)),
        ],
    )
    def test_is_ip_true(other, dirty):
>       assert other == dirty
E       AssertionError: assert IPv4Network('43.48.0.0/12') == IsIP()

tests/test_other.py:189: AssertionError
________________________ test_is_ip_true[other3-dirty3] ________________________

other = IPv6Network('::eeff:ae3f:d473/128'), dirty = IsIP()

    @pytest.mark.parametrize(
        'other,dirty',
        [
            (IPv4Address('127.0.0.1'), IsIP()),
            (IPv4Network('43.48.0.0/12'), IsIP()),
            (IPv6Address('::eeff:ae3f:d473'), IsIP()),
            (IPv6Network('::eeff:ae3f:d473/128'), IsIP()),
            ('2001:0db8:0a0b:12f0:0000:0000:0000:0001', IsIP()),
            ('179.27.154.96', IsIP),
            ('43.62.123.119', IsIP(version=4)),
            ('::ffff:2b3e:7b77', IsIP(version=6)),
            ('0:0:0:0:0:ffff:2b3e:7b77', IsIP(version=6)),
            ('54.43.53.219/10', IsIP(version=4, netmask='255.192.0.0')),
            ('::ffff:aebf:d473/12', IsIP(version=6, netmask='fff0::')),
            ('2001:0db8:0a0b:12f0:0000:0000:0000:0001', IsIP(version=6)),
            (3232235521, IsIP()),
            (b'\xc0\xa8\x00\x01', IsIP()),
            (338288524927261089654018896845572831328, IsIP(version=6)),
            (b'\x20\x01\x06\x58\x02\x2a\xca\xfe\x02\x00\x00\x00\x00\x00\x00\x01', IsIP(version=6)),
        ],
    )
    def test_is_ip_true(other, dirty):
>       assert other == dirty
E       AssertionError: assert IPv6Network('::eeff:ae3f:d473/128') == IsIP()

tests/test_other.py:189: AssertionError
=========================== short test summary info ============================
FAILED tests/test_other.py::test_is_ip_true[other1-dirty1] - AssertionError: ...
FAILED tests/test_other.py::test_is_ip_true[other3-dirty3] - AssertionError: ...
======================== 2 failed, 549 passed in 0.59s =========================

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08783385-python-dirty-equals/

For all our attempts to build python-dirty-equals with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-dirty-equals/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

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.

Comment 1 Ben Beasley 2025-03-18 11:44:02 UTC
I’ve reproduced this in a virtualenv and reported it upstream in https://github.com/samuelcolvin/dirty-equals/issues/112. I’m planning to skip the two failing test cases until an upstream fix is available.

I don’t think this should have blocked bug 2339432 (F43FTBFS/RAWHIDEFTBFS) since Python 3.14 isn’t yet in Rawhide.

Comment 2 Fedora Update System 2025-03-18 11:51:33 UTC
FEDORA-2025-5498d68b20 (python-dirty-equals-0.9.0-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-5498d68b20

Comment 3 Fedora Update System 2025-03-18 11:53:55 UTC
FEDORA-2025-5498d68b20 (python-dirty-equals-0.9.0-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.