MCPcopy Create free account
hub / github.com/psf/black / test_python_2_hint

Function test_python_2_hint

tests/test_format.py:143–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142
143def test_python_2_hint() -> None:
144 with pytest.raises(black.parsing.InvalidInput) as exc_info:
145 assert_format("print 'daylily'", "print 'daylily'")
146 exc_info.match(black.parsing.PY2_HINT)
147
148
149@pytest.mark.filterwarnings("ignore:invalid escape sequence.*:DeprecationWarning")

Callers

nothing calls this directly

Calls 2

assert_formatFunction · 0.90
matchMethod · 0.45

Tested by

no test coverage detected