Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mypyc test marks to new tests that patch #3871

Merged
merged 1 commit into from Sep 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_black.py
Expand Up @@ -1985,6 +1985,7 @@ def test_cache_multiple_files(self) -> None:
assert not cache.is_changed(one)
assert not cache.is_changed(two)

@pytest.mark.incompatible_with_mypyc
@pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"])
def test_no_cache_when_writeback_diff(self, color: bool) -> None:
mode = DEFAULT_MODE
Expand Down Expand Up @@ -2046,6 +2047,7 @@ def test_write_cache_read_cache(self) -> None:
read_cache = black.Cache.read(mode)
assert not read_cache.is_changed(src)

@pytest.mark.incompatible_with_mypyc
def test_filter_cached(self) -> None:
with TemporaryDirectory() as workspace:
path = Path(workspace)
Expand Down