Closed
Description
Collect some Python 3.12 related issues
Might be good to collect some Python 3.12 related issues.
1. For UserDict
, d.get(key)
and d[key]
return different values, as .get
method don't call __getitem__
As previously noticed in #3757 (comment).
2. Vasprun
: Two unit tests might fail for the following additional warning:
Testing an element's truth value will raise an exception in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
pymatgen/tests/io/vasp/test_outputs.py
Lines 302 to 308 in 666e1d7
and
pymatgen/tests/io/vasp/test_outputs.py
Lines 647 to 652 in 666e1d7
Metadata
Assignees
Labels
No labels