From 192aba100f60c872e45cccacb639bee0807523b6 Mon Sep 17 00:00:00 2001 From: Egor Shestakov Date: Thu, 14 Mar 2024 23:18:06 +0700 Subject: [PATCH] Closed opened files in some tests. --- test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.py b/test.py index e5b60d5..c7735c4 100644 --- a/test.py +++ b/test.py @@ -3291,6 +3291,7 @@ def test_extension_without_namespaces(self) -> None: self.assertEqual(2, len(gpx.waypoints[0].extensions)) self.assertEqual("bbb", gpx.waypoints[0].extensions[0].text) self.assertEqual("eee", list(gpx.waypoints[0].extensions[1])[0].text.strip()) + f.close() def test_garmin_extension(self) -> None: f = open('test_files/gpx_with_garmin_extension.gpx') @@ -3299,6 +3300,7 @@ def test_garmin_extension(self) -> None: self.assertTrue("" in xml) self.assertTrue("171" in xml) print(gpx.to_xml()) + f.close() def test_with_ns_namespace(self) -> None: gpx_with_ns = mod_gpxpy.parse(""" @@ -3378,6 +3380,7 @@ def test_small_floats(self) -> None: xml = gpx.to_xml() self.assertNotIn('e-', xml) + f.close() def test_gpx_fill_time_data_with_start_time_and_end_time(self) -> None: gpx = self.parse('cerknicko-jezero.gpx')