File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1146,3 +1146,4 @@ Bug Fixes
1146
1146
- Bug in ``DatetimeIndex`` cannot infer negative freq (:issue:`11018`)
1147
1147
- Remove use of some deprecated numpy comparison operations, mainly in tests. (:issue:`10569`)
1148
1148
- Bug in ``Index`` dtype may not applied properly (:issue:`11017`)
1149
+ - Bug in ``io.gbq`` when testing for minimum google api client version (:issue:`10652`)
Original file line number Diff line number Diff line change 7
7
8
8
import numpy as np
9
9
10
- from distutils .version import LooseVersion
10
+ from distutils .version import StrictVersion
11
11
from pandas import compat
12
12
from pandas .core .api import DataFrame
13
13
from pandas .tools .merge import concat
@@ -26,7 +26,7 @@ def _check_google_client_version():
26
26
27
27
_GOOGLE_API_CLIENT_VERSION = pkg_resources .get_distribution ('google-api-python-client' ).version
28
28
29
- if LooseVersion (_GOOGLE_API_CLIENT_VERSION ) < '1.2.0' :
29
+ if StrictVersion (_GOOGLE_API_CLIENT_VERSION ) < StrictVersion ( '1.2.0' ) :
30
30
raise ImportError ("pandas requires google-api-python-client >= 1.2.0 for Google "
31
31
"BigQuery support, current version " + _GOOGLE_API_CLIENT_VERSION )
32
32
Original file line number Diff line number Diff line change 12
12
13
13
import numpy as np
14
14
15
- from distutils .version import LooseVersion
15
+ from distutils .version import StrictVersion
16
16
from pandas import compat
17
17
18
18
from pandas import NaT
@@ -65,7 +65,7 @@ def _test_imports():
65
65
_GOOGLE_API_CLIENT_INSTALLED = True
66
66
_GOOGLE_API_CLIENT_VERSION = pkg_resources .get_distribution ('google-api-python-client' ).version
67
67
68
- if LooseVersion (_GOOGLE_API_CLIENT_VERSION ) >= '1.2.0' :
68
+ if StrictVersion (_GOOGLE_API_CLIENT_VERSION ) >= StrictVersion ( '1.2.0' ) :
69
69
_GOOGLE_API_CLIENT_VALID_VERSION = True
70
70
71
71
except ImportError :
You can’t perform that action at this time.
0 commit comments