File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 12
12
import numpy as np
13
13
import pandas as pd
14
14
from pandas import compat , DataFrame
15
-
16
15
from pandas .compat import range
16
+ import pandas .util .testing as tm
17
+
17
18
18
19
pandas_gbq = pytest .importorskip ('pandas_gbq' )
19
20
@@ -99,10 +100,12 @@ def make_mixed_dataframe_v2(test_size):
99
100
100
101
101
102
def test_read_gbq_without_dialect_warns_future_change (monkeypatch ):
103
+ # Default dialect is changing to standard SQL. See:
104
+ # https://github.com/pydata/pandas-gbq/issues/195
102
105
mock_read_gbq = mock .Mock ()
103
106
mock_read_gbq .return_value = DataFrame ([[1.0 ]])
104
107
monkeypatch .setattr (pandas_gbq , 'read_gbq' , mock_read_gbq )
105
- with pytest . warns (FutureWarning ):
108
+ with tm . assert_produces_warning (FutureWarning ):
106
109
pd .read_gbq ("SELECT 1" )
107
110
108
111
You can’t perform that action at this time.
0 commit comments