~pythonxy/pythonxy-upstream/geopandas

Viewing all changes in revision 316.

  • Committer: Joris Van den Bossche
  • Author(s): James McBride
  • Date: 2017-09-29 15:20:36 UTC
  • Revision ID: git-v1:5fd7f2db4268a62d79d438461515a8adcbdac924
TST: Set test gdf crs to silence crs warning (#567)

* TST: Set test gdf crs to silence crs warning

The symmetric difference test compared a frame with a crs to one
without. It didn't seem that this was intentional, so set the second
frame crs to the first so that the tests run without warnings.

Warning below:
geopandas/tests/test_geom_methods.py::TestGeomMethods::()::test_symmetric_difference_series
  /home/james/python/geopandas/geopandas/base.py:29: UserWarning: GeoSeries crs mismatch: {'init': 'epsg:4326', 'no_defs': True} and None
    other.crs))

geopandas/tests/test_geom_methods.py::TestGeomMethods::()::test_symmetric_difference_operator
  /home/james/python/geopandas/geopandas/base.py:29: UserWarning: GeoSeries crs mismatch: {'init': 'epsg:4326', 'no_defs': True} and None
    other.crs))

* Add test intended to catch CRS warning

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: