@@ -635,7 +635,14 @@ def test_read_gbq_wo_verbose_w_new_pandas_no_warnings(monkeypatch, recwarn):
635
635
mock .PropertyMock (return_value = False ),
636
636
)
637
637
gbq .read_gbq ("SELECT 1" , project_id = "my-project" , dialect = "standard" )
638
- assert len (recwarn ) == 0
638
+ # This test was intended to check for warnings about the deprecation of
639
+ # the argument `verbose` (which was removed from gbq (~v0.4.0) and
640
+ # pandas (~v0.23.0). This test should not fail upon seeing a
641
+ # warning in regards to a pending deprecation related to rfc9110 delimiters.
642
+ # TODO this and related tests have likely outlived their usefulness,
643
+ # consider removing.
644
+ for warning in recwarn .list :
645
+ assert "delimiter" in str (warning .message )
639
646
640
647
641
648
def test_read_gbq_with_old_bq_raises_importerror (monkeypatch ):
@@ -660,7 +667,14 @@ def test_read_gbq_with_verbose_old_pandas_no_warnings(monkeypatch, recwarn):
660
667
dialect = "standard" ,
661
668
verbose = True ,
662
669
)
663
- assert len (recwarn ) == 0
670
+ # This test was intended to check for warnings about the deprecation of
671
+ # the argument `verbose` (which was removed from gbq (~v0.4.0) and
672
+ # pandas (~v0.23.0). This test should not fail upon seeing a
673
+ # warning in regards to a pending deprecation related to rfc9110 delimiters.
674
+ # TODO this and related tests have likely outlived their usefulness,
675
+ # consider removing.
676
+ for warning in recwarn .list :
677
+ assert "delimiter" in str (warning .message )
664
678
665
679
666
680
def test_read_gbq_with_private_raises_notimplmentederror ():
0 commit comments