Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ test_long_list
Method
test_long_list
IPython/lib/tests/test_pretty.py:199–203 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
197
198
199
def
test_long_list(self):
200
lis = list(range(10000))
201
p = pretty.pretty(lis)
202
last2 = p.rsplit(
'\n'
, 2)[-2:]
203
self.assertEqual(last2, [
' 999,'
,
' ...]'
])
204
205
def
test_long_set(self):
206
s = set(range(10000))
Callers
nothing calls this directly
Calls
1
pretty
Method · 0.80
Tested by
no test coverage detected