15
0
Files
python-Markups/pygments.patch
Markéta Machová b2db603d94 - Update to 4.1.1
* Adapt the tests to Pygments 2.19 (contributed by Markéta Calábková in #20).
  * Add support for Debian ``node-mathjax-full`` package.
  * Use :PEP:`639` license expression (needs setuptools 77 or newer).
- Drop pygments.patch, merged upstream
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=26
2025-05-06 11:17:59 +00:00

24 lines
1.1 KiB
Diff

From 93f36f74ef018b6d12a04a46bb4ff8c83569b9cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mark=C3=A9ta?= <meggy.calabkova@gmail.com>
Date: Wed, 22 Jan 2025 14:29:42 +0100
Subject: [PATCH] adapt to Pygments 2.19
---
tests/test_public_api.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_public_api.py b/tests/test_public_api.py
index a23f091..f0a9d71 100644
--- a/tests/test_public_api.py
+++ b/tests/test_public_api.py
@@ -41,7 +41,7 @@ def test_get_pygments_stylesheet(self) -> None:
except ImportError:
raise unittest.SkipTest("Pygments not available")
stylesheet = get_pygments_stylesheet(".selector")
- self.assertIn(".selector .nf { color: #0000FF", stylesheet)
+ self.assertIn(".selector .nf { color: #00F", stylesheet)
stylesheet = get_pygments_stylesheet(".selector", style="colorful")
- self.assertIn(".selector .nf { color: #0066BB", stylesheet)
+ self.assertIn(".selector .nf { color: #06B", stylesheet)
self.assertFalse(get_pygments_stylesheet(".selector", style=""))