Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Remove unrelated changes.
  • Loading branch information
serhiy-storchaka committed Apr 8, 2024
commit 2d1d46f4b6b299364f686d839418fa49c980b192
5 changes: 2 additions & 3 deletions Lib/test/test_re.py
Original file line number Diff line number Diff line change
Expand Up @@ -2294,10 +2294,9 @@ def test_search_anchor_at_beginning(self):
self.assertEqual(re.findall(p, s), [])
self.assertEqual(list(re.finditer(p, s)), [])
self.assertEqual(re.sub(p, '', s), s)
# Without optimization it takes 12 seconds on my computer.
# Without optimization it takes 1 second on my computer.
# With optimization -- 0.0003 seconds.
print(stopwatch.seconds)
self.assertLess(stopwatch.seconds, 1)
self.assertLess(stopwatch.seconds, 0.1)

def test_possessive_quantifiers(self):
"""Test Possessive Quantifiers
Expand Down