Skip to content

Commit

Permalink
Skip Windows error on cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed May 12, 2024
1 parent ba826bf commit 37a730c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import numpy as np
import pytest
from bw2calc import LCA
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 37a730c

Please sign in to comment.