TST: fix the tests for >= python 3.6 (#759)

This commit is contained in:
Joris Van den Bossche authored and GitHub committed 2018-07-06 23:43:59 -05:00
1 parent 62c39fb8a1
commit a7c3bafe50
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -522,7 +522,7 @@ class TestGeomMethods:
test_df = df.explode()
expected_s = GeoSeries([Point(1, 2), Point(2, 3), Point(5, 5)])
expected_df = GeoDataFrame({'geometry': expected_s, 'col': [1, 1, 2]})
expected_df = GeoDataFrame({'col': [1, 1, 2], 'geometry': expected_s})
expected_index = MultiIndex(levels=[[0, 1], [0, 1]],
labels=[[0, 0, 1], [0, 1, 0]],
names=[index_name, None])
+2 -2
View File
@@ -12,8 +12,8 @@ s1 = GeoSeries([Polygon([(0, 0), (2, 0), (2, 2), (0, 2)]),
s2 = GeoSeries([Polygon([(0, 2), (0, 0), (2, 0), (2, 2)]),
Polygon([(2, 2), (4, 2), (4, 4), (2, 4)])])
df1 = GeoDataFrame({'geometry': s1, 'col1': [1, 2]})
df2 = GeoDataFrame({'geometry': s2, 'col1': [1, 2]})
df1 = GeoDataFrame({'col1': [1, 2], 'geometry': s1})
df2 = GeoDataFrame({'col1': [1, 2], 'geometry': s2})
def test_geoseries():