diff --git a/tests/unit/test_environment.py b/tests/unit/test_environment.py index 7a19d5850..d06cbe609 100644 --- a/tests/unit/test_environment.py +++ b/tests/unit/test_environment.py @@ -105,7 +105,7 @@ def test_environment_export_environment_exports_environment_json( """ assert example_spaceport_env.export_environment(filename="environment") == None assert os.path.isfile("environment.json") - request.addfinalizer(os.remove("environment.json")) + os.remove("environment.json") def test_geodesic_coordinate_geodesic_to_utm_converts_coordinate():