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

Method test_slow_fnmatch

Lib/test/test_fnmatch.py:53–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 check('\n', '*')
52
53 def test_slow_fnmatch(self):
54 check = self.check_match
55 check('a' * 50, '*a*a*a*a*a*a*a*a*a*a')
56 # The next "takes forever" if the regexp translation is
57 # straightforward. See bpo-40480.
58 check('a' * 50 + 'b', '*a*a*a*a*a*a*a*a*a*a', False)
59
60 def test_mix_bytes_str(self):
61 self.assertRaises(TypeError, fnmatch, 'test', b'*')

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected