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

Method test_warnings

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

Source from the content-addressed store, hash-verified

203 check('a[Z-/]b', r'a[Z-\]b', False)
204
205 def test_warnings(self):
206 with warnings.catch_warnings():
207 warnings.simplefilter('error', Warning)
208 check = self.check_match
209 check('[', '[[]')
210 check('&', '[a&&b]')
211 check('|', '[a||b]')
212 check('~', '[a~~b]')
213 check(',', '[a-z+--A-Z]')
214 check('.', '[a-z--/A-Z]')
215
216
217class TranslateTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected