From ab7353f512cee6267bc26e16476926afd3196dac Mon Sep 17 00:00:00 2001 From: Pedro Amaral Date: Tue, 13 Aug 2024 13:41:37 -0300 Subject: [PATCH] changing test file --- spreg/tests/test_error_sp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spreg/tests/test_error_sp.py b/spreg/tests/test_error_sp.py index a8e6935..8738cca 100644 --- a/spreg/tests/test_error_sp.py +++ b/spreg/tests/test_error_sp.py @@ -267,7 +267,11 @@ def test_model(self): class TestGMMError(unittest.TestCase): def setUp(self): - self.db = pd.read_csv(libpysal.examples.get_path('columbus.csv')) + try: + self.db = pd.read_csv(libpysal.examples.get_path('columbus.csv')) + except ValueError: + import geopandas as gpd + self.db = gpd.read_file(libpysal.examples.get_path('columbus.dbf')) self.w = libpysal.weights.Rook.from_shapefile(libpysal.examples.get_path("columbus.shp")) self.w.transform = 'r'