There is a weird behaviour of pytest after introducing the new attribute follow_links in the PalH5 source class.
It tries to access the attribute via __getattr__() of the parent class Source.
This obviously fails, as this attribute is not present there.
However, I do not understand why the original __getattribute__() of the PalkH5 class fails in pytest but not when normally executing the script
There is a weird behaviour of
pytestafter introducing the new attributefollow_linksin thePalH5source class.It tries to access the attribute via
__getattr__()of the parent classSource.This obviously fails, as this attribute is not present there.
However, I do not understand why the original
__getattribute__()of thePalkH5class fails inpytestbut not when normally executing the script