diff options
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_numbers.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_strings.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_numbers.py b/Lib/ctypes/test/test_numbers.py index ba4f563..09eef90 100644 --- a/Lib/ctypes/test/test_numbers.py +++ b/Lib/ctypes/test/test_numbers.py @@ -241,7 +241,7 @@ class c_int_S(_SimpleCData): def run_test(rep, msg, func, arg=None): ## items = [None] * rep items = range(rep) - from time import clock + from time import perf_counter as clock if arg is not None: start = clock() for i in items: diff --git a/Lib/ctypes/test/test_strings.py b/Lib/ctypes/test/test_strings.py index c7bfbda..e28e141 100644 --- a/Lib/ctypes/test/test_strings.py +++ b/Lib/ctypes/test/test_strings.py @@ -194,7 +194,7 @@ class WStringTestCase(unittest.TestCase): def run_test(rep, msg, func, arg): items = range(rep) - from time import clock + from time import perf_counter as clock start = clock() for i in items: func(arg); func(arg); func(arg); func(arg); func(arg) |