From 286be51fb4e051f8b2bdb019ef56255c8dc82ca3 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Thu, 12 Dec 2024 16:48:38 +0800 Subject: [PATCH] skip another test --- tests/io/test_phonopy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/io/test_phonopy.py b/tests/io/test_phonopy.py index 802e43049e2..76d1ecda4d7 100644 --- a/tests/io/test_phonopy.py +++ b/tests/io/test_phonopy.py @@ -125,6 +125,10 @@ def test_structure_conversion(self): assert struct_pmg_round_trip.site_properties["magmom"] == struct_pmg.site_properties["magmom"] +@pytest.mark.skipif( + platform.system() == "Windows" and int(np.__version__[0]) >= 2, + reason="See https://github.com/conda-forge/phonopy-feedstock/pull/158#issuecomment-2227506701", +) @pytest.mark.skipif(Phonopy is None, reason="Phonopy not present") class TestGetDisplacedStructures(PymatgenTest): def test_get_displaced_structures(self): @@ -157,11 +161,11 @@ def test_get_displaced_structures(self): assert os.path.isfile("test.yaml") -@pytest.mark.skipif(Phonopy is None, reason="Phonopy not present") @pytest.mark.skipif( platform.system() == "Windows" and int(np.__version__[0]) >= 2, reason="See https://github.com/conda-forge/phonopy-feedstock/pull/158#issuecomment-2227506701", ) +@pytest.mark.skipif(Phonopy is None, reason="Phonopy not present") class TestPhonopyFromForceConstants(TestCase): def setUp(self) -> None: test_path = Path(TEST_DIR)