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

Method test_continuation

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

Source from the content-addressed store, hash-verified

2146
2147
2148 def test_continuation(self):
2149 # Balancing continuation
2150 self.check_roundtrip("a = (3,4, \n"
2151 "5,6)\n"
2152 "y = [3, 4,\n"
2153 "5]\n"
2154 "z = {'a': 5,\n"
2155 "'b':15, 'c':True}\n"
2156 "x = len(y) + 5 - a[\n"
2157 "3] - a[2]\n"
2158 "+ len(z) - z[\n"
2159 "'b']\n")
2160
2161 def test_backslash_continuation(self):
2162 # Backslash means line continuation, except for comments

Callers

nothing calls this directly

Calls 1

check_roundtripMethod · 0.95

Tested by

no test coverage detected