public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mattia Verga <mattia.verga@proton.me>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pymdown-extensions] f44: Fix tests with Pygments 2.19
Date: Sun, 08 Nov 2026 09:10:28 GMT	[thread overview]
Message-ID: <179412902856.1.9906256756469471229.rpms-python-pymdown-extensions-df10322d066e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-pymdown-extensions
Branch : f44
Commit : df10322d066eb211d62f84e7bfd467d8a12ac4b3
Author : Mattia Verga <mattia.verga@proton.me>
Date   : 2026-11-08T10:09:50+01:00
Stats  : +34/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pymdown-extensions/c/df10322d066eb211d62f84e7bfd467d8a12ac4b3?branch=f44

Log:
Fix tests with Pygments 2.19

---
diff --git a/pygments_f44.patch b/pygments_f44.patch
new file mode 100644
index 0000000..601e7ad
--- /dev/null
+++ b/pygments_f44.patch
@@ -0,0 +1,33 @@
+diff -U 3 -dHrN b/tests/test_extensions/test_highlight.py c/tests/test_extensions/test_highlight.py
+--- b/tests/test_extensions/test_highlight.py	2026-11-08 10:03:41.133035675 +0100
++++ c/tests/test_extensions/test_highlight.py	2026-11-08 10:06:53.202609844 +0100
+@@ -182,7 +182,7 @@
+             ```
+             ''',
+             r'''
+-            <div class="highlight"><span class="filename">&lt;strong&gt;Python&lt;/strong&gt;</span><pre><span></span><code><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
++            <div class="highlight"><span class="filename"><strong>Python</strong></span><pre><span></span><code><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
+             </code></pre></div>
+             ''',  # noqa: E501
+             True
+diff -U 3 -dHrN b/tests/test_extensions/test_superfences.py c/tests/test_extensions/test_superfences.py
+--- b/tests/test_extensions/test_superfences.py	2026-11-08 10:03:41.133928777 +0100
++++ c/tests/test_extensions/test_superfences.py	2026-11-08 10:08:17.555647744 +0100
+@@ -131,7 +131,7 @@
+             ```
+             ''',
+             r'''
+-            <div class="highlight"><span class="filename">My &lt;strong&gt;title&lt;/strong&gt;</span><pre><span></span><code><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
++            <div class="highlight"><span class="filename">My <strong>title</strong></span><pre><span></span><code><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
+             </code></pre></div>
+             ''',  # noqa: E501
+             True
+@@ -147,7 +147,7 @@
+             ```
+             ''',
+             r'''
+-            <div class="highlight"><span class="filename">My &lt;strong&gt;title&lt;/strong&gt;</span><pre><span></span><code><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
++            <div class="highlight"><span class="filename">My <strong>title</strong></span><pre><span></span><code><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
+             </code></pre></div>
+             ''',  # noqa: E501
+             True

diff --git a/python-pymdown-extensions.spec b/python-pymdown-extensions.spec
index eb7b49b..448cd58 100644
--- a/python-pymdown-extensions.spec
+++ b/python-pymdown-extensions.spec
@@ -12,6 +12,7 @@ Source:         %{pypi_source pymdown_extensions}
 
 # Upstream tests are hardcoded vs Pygments 2.21
 Patch:          revert_f263972.patch
+Patch:          pygments_f44.patch
 
 BuildArch:      noarch
  

                 reply	other threads:[~2026-11-08  9:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179412902856.1.9906256756469471229.rpms-python-pymdown-extensions-df10322d066e@fedoraproject.org \
    --to=mattia.verga@proton.me \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox