We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a38ee0e commit 5dfaf17Copy full SHA for 5dfaf17
Lib/test/test_re.py
@@ -893,9 +893,8 @@ def test_string_boundaries(self):
893
self.assertTrue(re.search(r"\B", "abc"))
894
# There is no non-boundary match at the start of a string.
895
self.assertFalse(re.match(r"\B", "abc"))
896
- # However, an empty string contains no word boundaries, and also no
897
- # non-boundaries.
898
- self.assertIsNone(re.search(r"\B", ""))
+ # gh-124130: An empty string should be non-boundary.
+ self.assertTrue(re.match(r"\B", ""))
899
# This one is questionable and different from the perlre behaviour,
900
# but describes current behavior.
901
self.assertIsNone(re.search(r"\b", ""))
0 commit comments