You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: 'Module' object has no attribute '_obj' #1944
_______________________ ERROR collecting test.py _______________________
/usr/lib/python3.5/site-packages/_pytest/python.py:209: in fget
return self._obj
E AttributeError: 'Module' object has no attribute '_obj'
During handling of the above exception, another exception occurred:
test.py:4: in <module>
assert f() == 10
E assert None == 10
E + where None = <function f at 0x7fada7dd11e0>()
!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!
the upper part is probably caused by Python 3's chained exception support and #1486.
Activity
axil commentedon Sep 18, 2016
The same works with Python 2.7.9 (no AttributeError)
The-Compiler commentedon Sep 18, 2016
This is the full output:
the upper part is probably caused by Python 3's chained exception support and #1486.
AttributeError chaining bug pytest-dev#1944 fix
axil commentedon Sep 18, 2016
Not something really universal, but this patch fixes the issue.
AttributeError chaining bug pytest-dev#1944 fix
Merge pull request #1945 from axil/master
nicoddemus commentedon Sep 26, 2016
Resolved in
master