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

Method test_long_set

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

Source from the content-addressed store, hash-verified

203 self.assertEqual(last2, [' 999,', ' ...]'])
204
205 def test_long_set(self):
206 s = set(range(10000))
207 p = pretty.pretty(s)
208 last2 = p.rsplit('\n', 2)[-2:]
209 self.assertEqual(last2, [' 999,', ' ...}'])
210
211 def test_long_tuple(self):
212 tup = tuple(range(10000))

Callers

nothing calls this directly

Calls 1

prettyMethod · 0.80

Tested by

no test coverage detected