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

Skip to content

Commit 2d1d46f

Browse files
Remove unrelated changes.
1 parent 7f487fb commit 2d1d46f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/test/test_re.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,10 +2294,9 @@ def test_search_anchor_at_beginning(self):
22942294
self.assertEqual(re.findall(p, s), [])
22952295
self.assertEqual(list(re.finditer(p, s)), [])
22962296
self.assertEqual(re.sub(p, '', s), s)
2297-
# Without optimization it takes 12 seconds on my computer.
2297+
# Without optimization it takes 1 second on my computer.
22982298
# With optimization -- 0.0003 seconds.
2299-
print(stopwatch.seconds)
2300-
self.assertLess(stopwatch.seconds, 1)
2299+
self.assertLess(stopwatch.seconds, 0.1)
23012300

23022301
def test_possessive_quantifiers(self):
23032302
"""Test Possessive Quantifiers

0 commit comments

Comments
 (0)