1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Dmitry Shachnev <mitya57@debian.org>
Date: Tue, 29 Apr 2025 14:01:56 +0300
Subject: Make the tests still pass with Pygments 2.18
---
tests/test_public_api.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/test_public_api.py b/tests/test_public_api.py
index f0a9d71..e0bec11 100644
--- a/tests/test_public_api.py
+++ b/tests/test_public_api.py
@@ -41,7 +41,9 @@ class APITest(unittest.TestCase):
except ImportError:
raise unittest.SkipTest("Pygments not available")
stylesheet = get_pygments_stylesheet(".selector")
+ stylesheet = stylesheet.replace("#0000FF", "#00F")
self.assertIn(".selector .nf { color: #00F", stylesheet)
stylesheet = get_pygments_stylesheet(".selector", style="colorful")
+ stylesheet = stylesheet.replace("#0066BB", "#06B")
self.assertIn(".selector .nf { color: #06B", stylesheet)
self.assertFalse(get_pygments_stylesheet(".selector", style=""))
|