Skip to content

Commit 9fba0f4

Browse files
committed
test: xfail autodetect
Current Pygments versions wrongly detect the sample code in our test as `mojo`. Let's xfail them for now. Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
1 parent b57b6f3 commit 9fba0f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration/test_utility.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def test_expiries() -> None:
1010
assert len(configuration.expiries) == 2
1111

1212

13-
def test_guess_language() -> None:
13+
@pytest.mark.xfail(reason="Pygments incorrectly detects this as `mojo`. Upstream bug to be made.")
14+
def test_guess_language_broken() -> None:
1415
# python
1516
assert (
1617
utility.guess_language(
@@ -21,6 +22,8 @@ def test_guess_language() -> None:
2122
)
2223
== "python"
2324
)
25+
26+
def test_guess_language() -> None:
2427
assert (
2528
utility.guess_language(
2629
"""

0 commit comments

Comments
 (0)