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

Method test_long_tuple

IPython/lib/tests/test_pretty.py:211–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 self.assertEqual(last2, [' 999,', ' ...}'])
210
211 def test_long_tuple(self):
212 tup = tuple(range(10000))
213 p = pretty.pretty(tup)
214 last2 = p.rsplit('\n', 2)[-2:]
215 self.assertEqual(last2, [' 999,', ' ...)'])
216
217 def test_long_dict(self):
218 d = { n:n for n in range(10000) }

Callers

nothing calls this directly

Calls 1

prettyMethod · 0.80

Tested by

no test coverage detected