We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4029d97 commit 0de8d22Copy full SHA for 0de8d22
pandas/tests/io/test_gbq.py
@@ -12,8 +12,9 @@
12
import numpy as np
13
import pandas as pd
14
from pandas import compat, DataFrame
15
-
16
from pandas.compat import range
+import pandas.util.testing as tm
17
+
18
19
pandas_gbq = pytest.importorskip('pandas_gbq')
20
@@ -99,10 +100,12 @@ def make_mixed_dataframe_v2(test_size):
99
100
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
105
mock_read_gbq = mock.Mock()
106
mock_read_gbq.return_value = DataFrame([[1.0]])
107
monkeypatch.setattr(pandas_gbq, 'read_gbq', mock_read_gbq)
- with pytest.warns(FutureWarning):
108
+ with tm.assert_produces_warning(FutureWarning):
109
pd.read_gbq("SELECT 1")
110
111
0 commit comments