Lokal_Profil created this task. Lokal_Profil added projects: Pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
I recently tried to mock pywikibot.warnings to assert that it was called under certain circumstances. While mocking worked fine locally in tox when running it on Jenkins i got the following error:
File "/home/jenkins/workspace/tox-jessie/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1482, in __exit__ delattr(self.target, self.attribute) AttributeError: warning
The issue seems to occur when the mock patcher is destroyed at the end of the test. It seems likely that this is similar to this issue.
The test can be found here.
TASK DETAIL
EMAIL PREFERENCES
To: Lokal_Profil
Cc: Aklapper, pywikibot-bugs-list, Lokal_Profil, MayS, Mdupont, JJMC89, jayvdb, Alchimista
Cc: Aklapper, pywikibot-bugs-list, Lokal_Profil, MayS, Mdupont, JJMC89, jayvdb, Alchimista
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs