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

Method test_backslash_continuation

Lib/test/test_tokenize.py:2161–2168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2159 "'b']\n")
2160
2161 def test_backslash_continuation(self):
2162 # Backslash means line continuation, except for comments
2163 self.check_roundtrip("x=1+\\\n"
2164 "1\n"
2165 "# This is a comment\\\n"
2166 "# This also\n")
2167 self.check_roundtrip("# Comment \\\n"
2168 "x = 0")
2169
2170 def test_string_concatenation(self):
2171 # Two string literals on the same line

Callers

nothing calls this directly

Calls 1

check_roundtripMethod · 0.95

Tested by

no test coverage detected