1diff --git a/tests/test_cst.py b/tests/test_cst.py
2index c436183..bdba2d7 100644
3--- a/tests/test_cst.py
4+++ b/tests/test_cst.py
5@@ -3,7 +3,6 @@ import ast
6 from inspect import isabstract
7 from operator import attrgetter
8
9-import black
10 import libcst
11 import parso
12 import pytest
13@@ -51,27 +50,6 @@ def test_ast_unparse_from_nodes(source_code):
14 assert ast.dump(first) == ast.dump(second)
15
16
17-@pytest.mark.xfail
18-@example("A\u2592", black.FileMode())
19-@given(
20- source_code=hypothesmith.from_node(),
21- mode=st.builds(
22- black.FileMode,
23- line_length=st.just(88) | st.integers(0, 200),
24- string_normalization=st.booleans(),
25- is_pyi=st.booleans(),
26- ),
27-)
28-def test_black_autoformatter_from_nodes(source_code, mode):
29- try:
30- result = black.format_file_contents(source_code, fast=False, mode=mode)
31- except black.NothingChanged:
32- pass
33- else:
34- with pytest.raises(black.NothingChanged):
35- black.format_file_contents(result, fast=False, mode=mode)
36-
37-
38 @given(source_code=hypothesmith.from_node())
39 def test_from_node_always_compilable(source_code):
40 compile(source_code, "<string>", "exec")
41diff --git a/tests/test_syntactic.py b/tests/test_syntactic.py
42index 7ea42e9..a77ac39 100644
43--- a/tests/test_syntactic.py
44+++ b/tests/test_syntactic.py
45@@ -3,8 +3,6 @@ import ast
46 import io
47 import tokenize
48
49-import black
50-import blib2to3
51 import parso
52 import pytest
53 from hypothesis import example, given, reject, strategies as st
54@@ -58,34 +56,6 @@ def test_ast_unparse_from_grammar(source_code):
55 assert ast.dump(first) == ast.dump(second)
56
57
58-@example("\\", black.FileMode())
59-@example("A#\r#", black.FileMode())
60-@given(
61- source_code=hypothesmith.from_grammar(),
62- mode=st.builds(
63- black.FileMode,
64- line_length=st.just(88) | st.integers(0, 200),
65- string_normalization=st.booleans(),
66- is_pyi=st.booleans(),
67- ),
68-)
69-def test_black_autoformatter_from_grammar(source_code, mode):
70- try:
71- result = black.format_file_contents(source_code, fast=False, mode=mode)
72- except black.NothingChanged:
73- pass
74- except blib2to3.pgen2.tokenize.TokenError:
75- # Fails to tokenise e.g. "\\", though compile("\\", "<string>", "exec") works.
76- # See https://github.com/psf/black/issues/1012
77- reject()
78- except black.InvalidInput:
79- # e.g. "A#\r#", see https://github.com/psf/black/issues/970
80- reject()
81- else:
82- with pytest.raises(black.NothingChanged):
83- black.format_file_contents(result, fast=False, mode=mode)
84-
85-
86 @given(source_code=hypothesmith.from_grammar("eval_input"))
87 def test_eval_input_generation(source_code):
88 compile(source_code, filename="<string>", mode="eval")