Skip to content

Commit 4f69ea3

Browse files
committed
MAINT: pandas.util.testing.assert_equals removed
This method was removed in pandas-dev/pandas#16017 in favor of pytest.raises.
1 parent ff265c5 commit 4f69ea3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pandas_gbq/tests/test_gbq.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import logging
1010

1111
import numpy as np
12-
import pytest
1312

1413
from distutils.version import StrictVersion
1514
from pandas import compat
@@ -415,23 +414,23 @@ def test_import_google_api_python_client(self):
415414

416415
def test_should_return_bigquery_integers_as_python_ints(self):
417416
result = gbq._parse_entry(1, 'INTEGER')
418-
tm.assert_equal(result, int(1))
417+
assert result == int(1)
419418

420419
def test_should_return_bigquery_floats_as_python_floats(self):
421420
result = gbq._parse_entry(1, 'FLOAT')
422-
tm.assert_equal(result, float(1))
421+
assert result == float(1)
423422

424423
def test_should_return_bigquery_timestamps_as_numpy_datetime(self):
425424
result = gbq._parse_entry('0e9', 'TIMESTAMP')
426-
tm.assert_equal(result, np_datetime64_compat('1970-01-01T00:00:00Z'))
425+
assert result == np_datetime64_compat('1970-01-01T00:00:00Z')
427426

428427
def test_should_return_bigquery_booleans_as_python_booleans(self):
429428
result = gbq._parse_entry('false', 'BOOLEAN')
430-
tm.assert_equal(result, False)
429+
assert not result
431430

432431
def test_should_return_bigquery_strings_as_python_strings(self):
433432
result = gbq._parse_entry('STRING', 'STRING')
434-
tm.assert_equal(result, 'STRING')
433+
assert result == 'STRING'
435434

436435
def test_to_gbq_should_fail_if_invalid_table_name_passed(self):
437436
with pytest.raises(gbq.NotFoundException):
@@ -737,7 +736,7 @@ def test_index_column(self):
737736
private_key=_get_private_key_path())
738737
correct_frame = DataFrame(
739738
{'string_1': ['a'], 'string_2': ['b']}).set_index("string_1")
740-
tm.assert_equal(result_frame.index.name, correct_frame.index.name)
739+
assert result_frame.index.name == correct_frame.index.name
741740

742741
def test_column_order(self):
743742
query = "SELECT 'a' AS string_1, 'b' AS string_2, 'c' AS string_3"

0 commit comments

Comments
 (0)