MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_bare_except

Method test_bare_except

tests/test_keyboard_interrupt_checker.py:52–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 return [v.code for v in self._violations(code)]
51
52 def test_bare_except(self) -> None:
53 code = """\
54try:
55 pass
56except:
57 pass
58"""
59 assert "KBI001" in self._codes(code)
60
61 def test_except_exception(self) -> None:
62 code = """\

Callers

nothing calls this directly

Calls 1

_codesMethod · 0.95

Tested by

no test coverage detected