MCPcopy Create free account
hub / github.com/ipython/ipython / test_remove_comments

Function test_remove_comments

IPython/core/tests/test_inputsplitter.py:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86
87def test_remove_comments():
88 tests = [('text', 'text'),
89 ('text # comment', 'text '),
90 ('text # comment\n', 'text \n'),
91 ('text # comment \n', 'text \n'),
92 ('line # c \nline\n','line \nline\n'),
93 ('line # c \nline#c2 \nline\nline #c\n\n',
94 'line \nline\nline\nline \n\n'),
95 ]
96 tt.check_pairs(isp.remove_comments, tests)
97
98
99def test_get_input_encoding():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected