From 37a730ccb24cfc1e9e8d7ad25ea7674de360ec25 Mon Sep 17 00:00:00 2001 From: Chris Mutel Date: Sun, 12 May 2024 05:46:54 -0400 Subject: [PATCH] Skip Windows error on cleanup test --- tests/test_main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_main.py b/tests/test_main.py index b5145a2..5ebe550 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,3 +1,5 @@ +import sys + import numpy as np import pytest from bw2calc import LCA @@ -53,6 +55,9 @@ def check_b_database_matrices_aggregated(lca: LCA): assert lca.biosphere_matrix[:, lca.dicts.activity[node.id]].sum() != 7 +@pytest.skipif( + sys.platform.startswith("win"), reason="Error on cleanup deleting tmpdir" +) def test_convert_existing(background): AggregatedDatabase.convert_existing("a") assert databases["a"]["backend"] == "aggregated"