Skip to content

Commit

Permalink
tests: Skip some tests on the annoying OS
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 3, 2025
1 parent b822ece commit cee094f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_base_formatter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for the base formatter."""

import os
import subprocess

import pytest
Expand Down Expand Up @@ -93,6 +94,7 @@ def test_render_source_even_if_output_is_empty(md: Markdown) -> None:
assert "Source" in markup


@pytest.mark.skipif(os.name != "posix", reason="No time for the annoying OS.")
def test_changing_working_directory(md: Markdown) -> None:
"""Assert we can change the working directory with `workdir`.
Expand All @@ -109,6 +111,7 @@ def test_changing_working_directory(md: Markdown) -> None:
assert markup == "<p>/</p>"


@pytest.mark.skipif(os.name != "posix", reason="No time for the annoying OS.")
def test_console_width(md: Markdown) -> None:
"""Assert we can change the console width with `width`.
Expand Down

0 comments on commit cee094f

Please sign in to comment.