Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Skip MyPy tests when building with cibuildwheel.

Peter Sobota04911bb9312
diff --git a/tests/test_type_hints.py b/tests/test_type_hints.py
index e4c8f58..204db56 100644
--- a/tests/test_type_hints.py
+++ b/tests/test_type_hints.py
@@ -29,7 +29,7 @@ PASSING_FIXTURES = ALL_FIXTURES - FAILING_FIXTURES
@pytest.mark.skipif(
- os.environ.get("CIBW_BUILD"),
+ os.environ.get("CIBW_BUILD") is not None,
reason="Unable to get MyPy tests working while in cibuildwheel",
)
@pytest.mark.parametrize("filename", PASSING_FIXTURES)
@@ -44,7 +44,7 @@ def test_mypy_passes(filename):
@pytest.mark.skipif(
- os.environ.get("CIBW_BUILD"),
+ os.environ.get("CIBW_BUILD") is not None,
reason="Unable to get MyPy tests working while in cibuildwheel",
)
@pytest.mark.parametrize("filename", FAILING_FIXTURES)