MCPcopy Index your code
hub / github.com/python/cpython / test_unexpected_indent

Method test_unexpected_indent

Lib/test/test_syntax.py:3099–3101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3097 msg, lineno=2)
3098
3099 def test_unexpected_indent(self):
3100 self._check_error("foo()\n bar()\n", "unexpected indent",
3101 subclass=IndentationError)
3102
3103 def test_no_indent(self):
3104 self._check_error("if 1:\nfoo()", "expected an indented block",

Callers

nothing calls this directly

Calls 1

_check_errorMethod · 0.95

Tested by

no test coverage detected