This is a multi-part message in MIME format.
Hi. I found a different mode of failure today:
=================================== FAILURES ===================================
______________________ TestVaspDoc.test_print_help[ISYM] _______________________
self = <vasp.test_help.TestVaspDoc object at 0x7f34bfc4cb90>, tag = 'ISYM'
@pytest.mark.parametrize("tag", ["ISYM"])
def test_print_help(self, tag):
vasp_doc = VaspDoc()
with patch("sys.stdout", new=io.StringIO()) as fake_stdout:
vasp_doc.print_help(tag)
.pybuild/test_python3.13/tests/io/vasp/test_help.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pybuild/test_python3.13/pymatgen/io/vasp/help.py:32: in print_help
print(self.get_help(tag))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'pymatgen.io.vasp.help.VaspDoc'>, tag = 'ISYM', fmt = 'text'
@classmethod
def get_help(cls, tag: str, fmt: str = "text") -> str:
"""Get help on a VASP tag.
Args:
tag (str): VASP tag, e.g. ISYM.
Returns:
Help text.
"""
tag = tag.upper()
response = requests.get(
f"
https://www.vasp.at/wiki/index.php/{tag}",
timeout=60,
)
soup = BeautifulSoup(response.text, features="html.parser")
main_doc = soup.find(id="mw-content-text")
if fmt == "text":
output = main_doc.text
E AttributeError: 'NoneType' object has no attribute 'text' ---------------------------------------------------------------------
However, this also comes from tests/io/vasp/test_help.py, so
hardcoding website_down to True would also fix this one.
I'm attaching the trivial patch here, but someone should still
determine if it's good enough for the package as a whole
(i.e. considering also the CI tests).
Thanks. LS0tIGEvdGVzdHMvaW8vdmFzcC90ZXN0X2hlbHAucHkKKysrIGIvdGVzdHMvaW8vdmFzcC90 ZXN0X2hlbHAucHkKQEAgLTExLDEwICsxMSw3IEBAIGZyb20gcHltYXRnZW4uaW8udmFzcC5o ZWxwIGltcG9ydCBWYXNwRG9jCiBCZWF1dGlmdWxTb3VwID0gcHl0ZXN0LmltcG9ydG9yc2tp cCgiYnM0IikuQmVhdXRpZnVsU291cAogCiAKLXRyeToKLSAgICB3ZWJzaXRlX2Rvd24gPSBy ZXF1ZXN0cy5nZXQoImh0dHBzOi8vd3d3LnZhc3AuYXQiLCB0aW1lb3V0PTUpLnN0YXR1c19j b2RlICE9IDIwMAotZXhjZXB0IChyZXF1ZXN0cy5leGNlcHRpb25zLkNvbm5lY3Rpb25FcnJv ciwgcmVxdWVzdHMuZXhjZXB0aW9ucy5SZWFkVGltZW91dCk6Ci0gICAgd2Vic2l0ZV9kb3du ID0gVHJ1ZQord2Vic2l0ZV9kb3duID0gVHJ1ZQogCiAKIEBweXRlc3QubWFyay5za2lwaWYo d2Vic2l0ZV9kb3duLCByZWFzb249Ind3dy52YXNwLmF0IGlzIGRvd24iKQo=
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)