From d917836e7a9d60b40508d25fed8186e1416f054f Mon Sep 17 00:00:00 2001 From: eli knaap Date: Mon, 2 Oct 2023 11:05:56 -0700 Subject: [PATCH] use skipif --- geosnap/tests/test_constructors.py | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/geosnap/tests/test_constructors.py b/geosnap/tests/test_constructors.py index 3693ec9a..6b6077ef 100644 --- a/geosnap/tests/test_constructors.py +++ b/geosnap/tests/test_constructors.py @@ -24,26 +24,15 @@ def test_nces_school_dists(): dists = io.get_nces(store, dataset="school_districts") assert dists.shape == (13352, 18) - +@pytest.mark.skipif(sys.platform.startswith("win"), reason="skipping test on windows due to mem failure") def test_ejscreen(): - if sys.platform.startswith("win"): - pytest.skip( - "skipping test on windows due to mem failure", allow_module_level=True - ) - - else: - ej = io.get_ejscreen(store, years=[2018], fips=["11"]) - assert ej.shape == (450, 369) - + ej = io.get_ejscreen(store, years=[2018], fips=["11"]) + assert ej.shape == (450, 369) +@pytest.mark.skipif(sys.platform.startswith("win"), reason="skipping test on windows due to mem failure") def test_nces_sabs(): - if sys.platform.startswith("win"): - pytest.skip( - "skipping test on windows due to mem failure", allow_module_level=True - ) - else: - sabs = io.get_nces(store, dataset="sabs") - assert sabs.shape == (75128, 15) + sabs = io.get_nces(store, dataset="sabs") + assert sabs.shape == (75128, 15) def test_acs():