Skip to content

Commit bf2f408

Browse files
committed
COMPAT: use compat.range for gbq py3 testing
1 parent 42c9f82 commit bf2f408

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/io/gbq.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from pandas.core.common import PandasError
1515
from pandas.util.decorators import deprecate
1616

17-
1817
def _check_google_client_version():
1918
if compat.PY3:
2019
raise NotImplementedError("Google's libraries do not support Python 3 yet")

pandas/io/tests/test_gbq.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pandas import compat
1111

1212
from pandas import NaT
13-
from pandas.compat import u
13+
from pandas.compat import u, range
1414
from pandas.core.frame import DataFrame
1515
import pandas.io.gbq as gbq
1616
import pandas.util.testing as tm
@@ -111,7 +111,7 @@ def make_mixed_dataframe_v2(test_size):
111111
flts = np.random.randn(1, test_size)
112112
ints = np.random.randint(1, 10, size=(1, test_size))
113113
strs = np.random.randint(1, 10, size=(1, test_size)).astype(str)
114-
times = [datetime.now(pytz.timezone('US/Arizona')) for t in xrange(test_size)]
114+
times = [datetime.now(pytz.timezone('US/Arizona')) for t in range(test_size)]
115115
return DataFrame({'bools': bools[0],
116116
'flts': flts[0],
117117
'ints': ints[0],

0 commit comments

Comments
 (0)