Skip to content

Commit 4eebfd1

Browse files
authored
Add mypyc test marks to new tests that patch (#3871)
This is enough for me to get a clean test run on Python 3.9 with mypyc. I have not been able to repro the pickle failures on either Linux or macOS.
1 parent add161b commit 4eebfd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_black.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,6 +1985,7 @@ def test_cache_multiple_files(self) -> None:
19851985
assert not cache.is_changed(one)
19861986
assert not cache.is_changed(two)
19871987

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

2050+
@pytest.mark.incompatible_with_mypyc
20492051
def test_filter_cached(self) -> None:
20502052
with TemporaryDirectory() as workspace:
20512053
path = Path(workspace)

0 commit comments

Comments
 (0)