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

Method test_regexps

Lib/test/test_bytes.py:1489–1493  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1487 self.assertEqual(b, b'abc')
1488
1489 def test_regexps(self):
1490 def by(s):
1491 return bytearray(map(ord, s))
1492 b = by("Hello, world")
1493 self.assertEqual(re.findall(br"\w+", b), [by("Hello"), by("world")])
1494
1495 def test_resize(self):
1496 ba = bytearray(b'abcdef')

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
findallMethod · 0.45

Tested by

no test coverage detected