Debian Codegraph @

pypy/interpreter/test/test_special.py

raw symbols SCIP
1
2
3 class AppTestSpecialTestCase:
4 def test_Ellipsis(self):
5 assert Ellipsis == Ellipsis
6 assert repr(Ellipsis) == 'Ellipsis'
7 assert Ellipsis.__class__.__name__ == 'ellipsis'
8 assert Ellipsis.__reduce__() == 'Ellipsis'
9
10 def test_NotImplemented(self):
11 def f():
12 return NotImplemented
13 assert f() == NotImplemented
14 assert repr(NotImplemented) == 'NotImplemented'
15 assert NotImplemented.__class__.__name__ == 'NotImplementedType'
16 assert NotImplemented.__reduce__() == 'NotImplemented'
17
18 def test_deprecated(self):
19 import warnings
20 with warnings.catch_warnings(record=True) as w:
21 warnings.simplefilter('always')
22 bool(NotImplemented)
23 assert len(w) == 1
24