| |
@@ -0,0 +1,28 @@
|
| |
+ From cdda8945e6a0a08eccce7d7ed91a4defa4d920d4 Mon Sep 17 00:00:00 2001
|
| |
+ From: Ast-x64 <Ast-x64@protonmail.com>
|
| |
+ Date: Wed, 26 Jan 2022 12:41:03 +0800
|
| |
+ Subject: [PATCH] Fix test_style_defs
|
| |
+
|
| |
+ The pygments module made a change to default snippet styles in 2.11.0,
|
| |
+ which breaks the test_style_defs unit here using predefined styles
|
| |
+ from old pygments.
|
| |
+ See https://github.com/pygments/pygments/pull/1940 for more information.
|
| |
+ ---
|
| |
+ tests/fixtures/snippet.css | 4 ++--
|
| |
+ 1 file changed, 2 insertions(+), 2 deletions(-)
|
| |
+
|
| |
+ diff --git a/tests/fixtures/snippet.css b/tests/fixtures/snippet.css
|
| |
+ index 6d430a01..228d0d77 100644
|
| |
+ --- a/tests/fixtures/snippet.css
|
| |
+ +++ b/tests/fixtures/snippet.css
|
| |
+ @@ -1,8 +1,8 @@
|
| |
+ .hll { background-color: #ffcccc }
|
| |
+ -.c { color: #408080; font-style: italic } /* Comment */
|
| |
+ +.c { color: #3D7B7B; font-style: italic } /* Comment */
|
| |
+ .k { color: #008000; font-weight: bold } /* Keyword */
|
| |
+ .o { color: #666666 } /* Operator */
|
| |
+ .m { color: #666666 } /* Literal.Number */
|
| |
+ .s { color: #BA2121 } /* Literal.String */
|
| |
+ -.na { color: #7D9029 } /* Name.Attribute */
|
| |
+ +.na { color: #687822 } /* Name.Attribute */
|
| |
+ .nb { color: #008000 } /* Name.Builtin */
|
| |
As Pygments 2.11.2 is heading to Rawhide, I'd like to ensure python-diff-cover builds on top of them. I backported a commit from an open upstream PR to fix the test output and verified in the testing Copr repository this indeed fixes the issue. The build will probably fail with the current Pygments version though. I'll let you know once Pygments update is delivered to Rawhide, to merge and build this PR.