Commit b0ae9270 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed remaining test outputs aufter running Test_Geoarray.test_save().

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent 8ddd2d40
......@@ -426,16 +426,16 @@ class Test_GeoArray(TestCase):
def test_save(self, _, gA):
with tempfile.NamedTemporaryFile(dir=os.path.join(tests_path, "tests", "data", "output"),
suffix=".tif") as tf:
with tempfile.TemporaryDirectory(dir=os.path.join(tests_path, "tests", "data", "output"),
prefix='test_save_') as td:
# save GeoArray and validate output
for fmt in ['ENVI', 'GTiff']:, fmt=fmt)
gA_copy = GeoArray(
outpath = os.path.join(td, "TestGeoArray_10x11_copy.tif"), fmt=fmt)
gA_copy = GeoArray(outpath)
self.assertIsInstance(gA_copy, GeoArray)
self.assertTrue(np.array_equal(gA[:], gA_copy[:]))
self.assertEqual(gA._nodata, gA_copy._nodata)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment