15
0
Files
python-Markups/pygments.patch
Matej Cepl e274121fd6 Accepting request 1239543 from home:mcalabkova:branches:devel:languages:python
- Add pygments.patch to fix test failure with new pygments

- Update to 4.1.0
  * Incompatible change: Python 3.9 is no longer supported
  * Made the order of Markdown extensions deterministic
  * Adopted ruff for code quality checks and auto-formatting

OBS-URL: https://build.opensuse.org/request/show/1239543
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=21
2025-01-23 17:49:03 +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=""))