Skip to content

Commit

Permalink
test: xfail autodetect
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
supakeen committed Sep 13, 2024
1 parent b57b6f3 commit 9fba0f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/test_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def test_expiries() -> None:
assert len(configuration.expiries) == 2


def test_guess_language() -> None:
@pytest.mark.xfail(reason="Pygments incorrectly detects this as `mojo`. Upstream bug to be made.")
def test_guess_language_broken() -> None:
# python
assert (
utility.guess_language(
Expand All @@ -21,6 +22,8 @@ def test_guess_language() -> None:
)
== "python"
)

def test_guess_language() -> None:
assert (
utility.guess_language(
"""
Expand Down

0 comments on commit 9fba0f4

Please sign in to comment.