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

Method test_empty_array

Lib/test/test_re.py:1784–1790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1782
1783 @warnings_helper.ignore_warnings(category=DeprecationWarning) # gh-80480 array('u')
1784 def test_empty_array(self):
1785 # SF buf 1647541
1786 import array
1787 for typecode in 'bBhuwHiIlLfd':
1788 a = array.array(typecode)
1789 self.assertIsNone(re.compile(b"bla").match(a))
1790 self.assertEqual(re.compile(b"").match(a).groups(), ())
1791
1792 def test_inline_flags(self):
1793 # Bug #1700

Callers

nothing calls this directly

Calls 5

assertIsNoneMethod · 0.80
matchMethod · 0.45
compileMethod · 0.45
assertEqualMethod · 0.45
groupsMethod · 0.45

Tested by

no test coverage detected