aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>2025-04-28 13:55:08 +0200
committerGitHub <noreply@github.com>2025-04-28 13:55:08 +0200
commit11f457cf41beede182d7387080f35c73f8f4a46f (patch)
tree6f9070bc3b9fd0e3fe899ee5b9cdc700e0e14671 /Lib/test/test_re.py
parente577439803db15122af9b080103a5819cd38272f (diff)
downloadcpython-11f457cf41beede182d7387080f35c73f8f4a46f.tar.gz
cpython-11f457cf41beede182d7387080f35c73f8f4a46f.zip
GH-114911: use time.perf_counter in Stopwatch (GH-131469)
Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index f65b4076aee..cf8525ed901 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -1,7 +1,7 @@
from test.support import (gc_collect, bigmemtest, _2G,
cpython_only, captured_stdout,
check_disallow_instantiation, linked_to_musl,
- warnings_helper, SHORT_TIMEOUT, CPUStopwatch, requires_resource)
+ warnings_helper, SHORT_TIMEOUT, Stopwatch, requires_resource)
import locale
import re
import string
@@ -2467,7 +2467,7 @@ class ReTests(unittest.TestCase):
@requires_resource('cpu')
def test_search_anchor_at_beginning(self):
s = 'x'*10**7
- with CPUStopwatch() as stopwatch:
+ with Stopwatch() as stopwatch:
for p in r'\Ay', r'^y':
self.assertIsNone(re.search(p, s))
self.assertEqual(re.split(p, s), [s])