Show More
@@ -663,6 +663,22 def pygments25(): | |||||
663 | return (major, minor) >= (2, 5) |
|
663 | return (major, minor) >= (2, 5) | |
664 |
|
664 | |||
665 |
|
665 | |||
|
666 | @check("pygments211", "Pygments version >= 2.11") | |||
|
667 | def pygments211(): | |||
|
668 | try: | |||
|
669 | import pygments | |||
|
670 | ||||
|
671 | v = pygments.__version__ | |||
|
672 | except ImportError: | |||
|
673 | return False | |||
|
674 | ||||
|
675 | parts = v.split(".") | |||
|
676 | major = int(parts[0]) | |||
|
677 | minor = int(parts[1]) | |||
|
678 | ||||
|
679 | return (major, minor) >= (2, 11) | |||
|
680 | ||||
|
681 | ||||
666 | @check("outer-repo", "outer repo") |
|
682 | @check("outer-repo", "outer repo") | |
667 | def has_outer_repo(): |
|
683 | def has_outer_repo(): | |
668 | # failing for other reasons than 'no repo' imply that there is a repo |
|
684 | # failing for other reasons than 'no repo' imply that there is a repo |
@@ -176,14 +176,19 test diff colorisation | |||||
176 | running 1 tests using 1 parallel processes |
|
176 | running 1 tests using 1 parallel processes | |
177 |
|
177 | |||
178 | \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc) |
|
178 | \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc) | |
179 |
\x1b[38;5; |
|
179 | \x1b[38;5;28m+++ $TESTTMP/test-failure.t.err\x1b[39m (esc) (pygments211 !) | |
|
180 | \x1b[38;5;34m+++ $TESTTMP/test-failure.t.err\x1b[39m (esc) (no-pygments211 !) | |||
180 | \x1b[38;5;90;01m@@ -1,4 +1,4 @@\x1b[39;00m (esc) |
|
181 | \x1b[38;5;90;01m@@ -1,4 +1,4 @@\x1b[39;00m (esc) | |
181 |
$ |
|
182 | \x1b[38;5;250m \x1b[39m $ echo "bar-baz"; echo "bar-bad"; echo foo (esc) (pygments211 !) | |
182 | \x1b[38;5;34m+ bar*baz (glob)\x1b[39m (esc) |
|
183 | $ echo "bar-baz"; echo "bar-bad"; echo foo (no-pygments211 !) | |
183 | bar*bad (glob) |
|
184 | \x1b[38;5;28m+ bar*baz (glob)\x1b[39m (esc) (pygments211 !) | |
|
185 | \x1b[38;5;34m+ bar*baz (glob)\x1b[39m (esc) (no-pygments211 !) | |||
|
186 | \x1b[38;5;250m \x1b[39m bar*bad (glob) (esc) (pygments211 !) | |||
|
187 | bar*bad (glob) (no-pygments211 !) | |||
184 | \x1b[38;5;124m- bar*baz (glob)\x1b[39m (esc) |
|
188 | \x1b[38;5;124m- bar*baz (glob)\x1b[39m (esc) | |
185 | \x1b[38;5;124m- | fo (re)\x1b[39m (esc) |
|
189 | \x1b[38;5;124m- | fo (re)\x1b[39m (esc) | |
186 |
\x1b[38;5; |
|
190 | \x1b[38;5;28m+ foo\x1b[39m (esc) (pygments211 !) | |
|
191 | \x1b[38;5;34m+ foo\x1b[39m (esc) (no-pygments211 !) | |||
187 |
|
192 | |||
188 | \x1b[38;5;88mERROR: \x1b[39m\x1b[38;5;9mtest-failure.t\x1b[39m\x1b[38;5;88m output changed\x1b[39m (esc) |
|
193 | \x1b[38;5;88mERROR: \x1b[39m\x1b[38;5;9mtest-failure.t\x1b[39m\x1b[38;5;88m output changed\x1b[39m (esc) | |
189 | ! |
|
194 | ! |
General Comments 0
You need to be logged in to leave comments.
Login now