Skip to content

Commit

Permalink
fix(tests): add skips
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Dec 10, 2024
1 parent 2f8f040 commit 824a775
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_manim.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import manim_slides.slide as slide

skip_if_py39 = pytest.mark.skipif(
sys.version_info < (3, 10),
reason="See https://github.com/3b1b/manim/issues/2263",
)

def assert_import(
*,
Expand All @@ -20,6 +24,7 @@ def assert_import(
assert slide.MANIMGL == manimgl


@skip_if_py39
def test_force_api() -> None:
pytest.importorskip("manimlib")
import manim # noqa: F401
Expand Down Expand Up @@ -53,6 +58,7 @@ def test_invalid_api() -> None:
del os.environ[slide.MANIM_API]


@skip_if_py39
@pytest.mark.filterwarnings("ignore:assert_import")
def test_manim_and_manimgl_imported() -> None:
pytest.importorskip("manimlib")
Expand All @@ -79,6 +85,7 @@ def test_manim_imported() -> None:
)


@skip_if_py39
def test_manimgl_imported() -> None:
pytest.importorskip("manimlib")
import manimlib # noqa: F401
Expand Down

0 comments on commit 824a775

Please sign in to comment.