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

Method test_isalnum

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

Source from the content-addressed store, hash-verified

163
164 @bigmemtest(size=_2G, memuse=2)
165 def test_isalnum(self, size):
166 _ = self.from_latin1
167 SUBSTR = _('123456')
168 s = _('a') * size + SUBSTR
169 self.assertTrue(s.isalnum())
170 s += _('.')
171 self.assertFalse(s.isalnum())
172
173 @bigmemtest(size=_2G, memuse=2)
174 def test_isalpha(self, size):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
isalnumMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70

Tested by

no test coverage detected