Thanks to visit codestin.com Credit goes to github.com
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 7f487fb commit 2d1d46fCopy full SHA for 2d1d46f
1 file changed
Lib/test/test_re.py
@@ -2294,10 +2294,9 @@ def test_search_anchor_at_beginning(self):
2294
self.assertEqual(re.findall(p, s), [])
2295
self.assertEqual(list(re.finditer(p, s)), [])
2296
self.assertEqual(re.sub(p, '', s), s)
2297
- # Without optimization it takes 12 seconds on my computer.
+ # Without optimization it takes 1 second on my computer.
2298
# With optimization -- 0.0003 seconds.
2299
- print(stopwatch.seconds)
2300
- self.assertLess(stopwatch.seconds, 1)
+ self.assertLess(stopwatch.seconds, 0.1)
2301
2302
def test_possessive_quantifiers(self):
2303
"""Test Possessive Quantifiers
0 commit comments