Bug 2336948 - python-pymdown-extensions fails to build with Python 3.14: TestAbsolute.test_relative_path and TestAbsoluteFileScheme.test_relative_path AssertionErrors
Summary: python-pymdown-extensions fails to build with Python 3.14: TestAbsolute.test_...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pymdown-extensions
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-01-10 15:38 UTC by Karolina Surma
Modified: 2025-03-31 10:42 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-01-10 15:38:50 UTC
python-pymdown-extensions fails to build with Python 3.14.0a3.

_______________________ TestAbsolute.test_relative_path ________________________

self = <tests.test_extensions.test_pathconverter.TestAbsolute testMethod=test_relative_path>

    def test_relative_path(self):
        """Test relative path."""
    
>       self.check_markdown(
            r'![picture](./test_extensions/_assets/bg.png)',
            r'<p><img alt="picture" src="/Some/fake/path/test_extensions/_assets/bg.png" /></p>'
        )

tests/test_extensions/test_pathconverter.py:182: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/util.py:91: in check_markdown
    self.assertTrue(not diff)
E   AssertionError: False is not true
----------------------------- Captured stdout call -----------------------------
--- Expected
+++ Actual
@@ -1 +1 @@
-<p><img alt="picture" src="/Some/fake/path/test_extensions/_assets/bg.png" /></p>+<p><img alt="picture" src="/////Some/fake/path/test_extensions/_assets/bg.png" /></p>
__________________ TestAbsoluteFileScheme.test_relative_path ___________________

self = <tests.test_extensions.test_pathconverter.TestAbsoluteFileScheme testMethod=test_relative_path>

    def test_relative_path(self):
        """Test relative path."""
    
>       self.check_markdown(
            r'![picture](./test_extensions/_assets/bg.png)',
            r'<p><img alt="picture" src="file:///Some/fake/path/test_extensions/_assets/bg.png" /></p>'
        )

tests/test_extensions/test_pathconverter.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/util.py:91: in check_markdown
    self.assertTrue(not diff)
E   AssertionError: False is not true
----------------------------- Captured stdout call -----------------------------
--- Expected
+++ Actual
@@ -1 +1 @@
-<p><img alt="picture" src="file:///Some/fake/path/test_extensions/_assets/bg.png" /></p>+<p><img alt="picture" src="file://///Some/fake/path/test_extensions/_assets/bg.png" /></p>


This might be related to https://github.com/python/cpython/issues/125974

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/08480262-python-pymdown-extensions/

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

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 Aoife Moloney 2025-02-26 13:22:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.


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