mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-10 12:00:21 +08:00
TST CLN: Use assert_isinstance from pandas instead of redefining it
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import io
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
from six.moves.urllib.request import urlopen
|
||||
from pandas.util.testing import assert_isinstance
|
||||
|
||||
from geopandas import GeoDataFrame, GeoSeries
|
||||
|
||||
@@ -151,13 +153,6 @@ def geom_almost_equals(this, that):
|
||||
return (this.geom_almost_equals(that) |
|
||||
(this.is_empty & that.is_empty)).all()
|
||||
|
||||
# TODO: Remove me when standardizing on pandas 0.13, which already includes
|
||||
# this test util.
|
||||
def assert_isinstance(obj, klass_or_tuple):
|
||||
assert isinstance(obj, klass_or_tuple), "type: %r != %r" % (
|
||||
type(obj).__name__,
|
||||
getattr(klass_or_tuple, '__name__',
|
||||
klass_or_tuple))
|
||||
|
||||
def assert_geoseries_equal(left, right, check_dtype=False,
|
||||
check_index_type=False,
|
||||
|
||||
Reference in New Issue
Block a user