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

Method test_isdigit

Lib/test/test_bigmem.py:183–189  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

181
182 @bigmemtest(size=_2G, memuse=2)
183 def test_isdigit(self, size):
184 _ = self.from_latin1
185 SUBSTR = _('123456')
186 s = _('9') * size + SUBSTR
187 self.assertTrue(s.isdigit())
188 s += _('z')
189 self.assertFalse(s.isdigit())
190
191 @bigmemtest(size=_2G, memuse=2)
192 def test_islower(self, size):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
isdigitMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70

Tested by

no test coverage detected