We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4029d97 commit f5c07d2Copy full SHA for f5c07d2
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
@@ -102,7 +103,7 @@ def test_read_gbq_without_dialect_warns_future_change(monkeypatch):
102
103
mock_read_gbq = mock.Mock()
104
mock_read_gbq.return_value = DataFrame([[1.0]])
105
monkeypatch.setattr(pandas_gbq, 'read_gbq', mock_read_gbq)
- with pytest.warns(FutureWarning):
106
+ with tm.assert_produces_warning(FutureWarning):
107
pd.read_gbq("SELECT 1")
108
109
0 commit comments