MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_no_indent

Method test_no_indent

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

Source from the content-addressed store, hash-verified

2407 subclass=IndentationError)
2408
2409 def test_no_indent(self):
2410 self._check_error("if 1:\nfoo()", "expected an indented block",
2411 subclass=IndentationError)
2412
2413 def test_bad_outdent(self):
2414 self._check_error("if 1:\n foo()\n bar()",

Callers

nothing calls this directly

Calls 1

_check_errorMethod · 0.95

Tested by

no test coverage detected