Skip to content

Commit f7241b9

Browse files
authored
TST: Only import time.perf_counter (#1480)
1 parent b188910 commit f7241b9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

test/test_awips221.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import array
2+
from time import perf_counter
23

34
import numpy
45
from numpy.testing import assert_allclose
56

67
from pyproj import Proj, __proj_version__
78

8-
try:
9-
from time import perf_counter
10-
except ImportError:
11-
from time import clock as perf_counter
12-
139

1410
def test_awips221():
1511
params = {}

test/test_pickle.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
import shutil
66
import tempfile
77
from contextlib import contextmanager
8+
from time import perf_counter
89

910
import numpy
1011
from numpy.testing import assert_allclose
1112

1213
from pyproj import Proj
1314

14-
try:
15-
from time import perf_counter
16-
except ImportError:
17-
from time import clock as perf_counter
18-
1915

2016
@contextmanager
2117
def temporary_directory():

0 commit comments

Comments
 (0)