Skip to content

Conversation

@speleo3
Copy link
Contributor

@speleo3 speleo3 commented Nov 24, 2025

pytest reports PytestUnraisableExceptionWarning in tests/api/build.py::TestNucBuilder.

Minimal example is to call cmd.fragment("gtp").

$ python -c 'from pymol import cmd;cmd.fragment("gtp")'
Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/d2/bld/env-open-source-3-1-master/lib/python3.13/site-packages/pymol/importing.py", line 205, in load_object
    r = _cmd.load_object(_self._COb,str(name),object,int(state)-1,
AttributeError: 'Indexed' object has no attribute 'molecule'

Since 'molecule' seems to be an optional member of the chempy Indexed object, the AttributeError can be deliberately ignored.

pytest reports a warning in tests/api/build.py::TestNucBuilder

  AttributeError: 'Indexed' object has no attribute 'molecule'

Since 'molecule' seems to be an optional member of the chempy Indexed
object, the AttributeError can be deliberately ignored.
@JarrettSJohnson JarrettSJohnson merged commit 63e312a into schrodinger:master Nov 24, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants