MCPcopy Index your code
hub / github.com/bpython/bpython / assertCompiles

Method assertCompiles

bpython/test/test_preprocess.py:37–39  ·  view source on GitHub ↗
(self, source)

Source from the content-addressed store, hash-verified

35
36class TestPreprocessing(unittest.TestCase):
37 def assertCompiles(self, source):
38 finished, parsable = code_finished_will_parse(source, compiler)
39 return finished and parsable
40
41 def test_indent_empty_lines_nops(self):
42 self.assertEqual(preproc("hello"), "hello")

Callers 2

assertLinesIndentedMethod · 0.95

Calls 1

code_finished_will_parseFunction · 0.90

Tested by

no test coverage detected