From 48524df85f3cc4d94ab942add09b7b2e3e3d1ba9 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Wed, 7 Aug 2024 14:27:41 -0400 Subject: [PATCH] fix test_dict_set_alias for real --- src/pymatgen/io/vasp/sets/base.py | 2 +- tests/io/vasp/test_sets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pymatgen/io/vasp/sets/base.py b/src/pymatgen/io/vasp/sets/base.py index d3718e43128..c61c5f828d3 100644 --- a/src/pymatgen/io/vasp/sets/base.py +++ b/src/pymatgen/io/vasp/sets/base.py @@ -1143,7 +1143,7 @@ class DictSet(VaspInputSet): def __post_init__(self): super().__post_init__() warnings.warn( - "DictSet is deprecated, and will be removed on 2025-12-31\n; Use VaspInputSet", + "DictSet is deprecated, and will be removed on 2025-12-31. Use VaspInputSet", category=FutureWarning, stacklevel=2, ) diff --git a/tests/io/vasp/test_sets.py b/tests/io/vasp/test_sets.py index 90828a5a58d..06582a7a893 100644 --- a/tests/io/vasp/test_sets.py +++ b/tests/io/vasp/test_sets.py @@ -2121,7 +2121,7 @@ def test_vasp_input_set_alias(): def test_dict_set_alias(): with pytest.warns( - FutureWarning, match="DictSet is deprecated, and will be removed on 2025-12-31\nUse VaspInputSet" + FutureWarning, match="DictSet is deprecated, and will be removed on 2025-12-31. Use VaspInputSet" ): DictSet() assert isinstance(DictSet(), VaspInputSet)