Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

Thanks @asottile for the patch. I think the original AttributeError is resolved 
with issue28919 where they were silenced. It seems similar to issue32153 though 
the exception occurs from mock instead of partial object as in issue32153. The 
fix was applied to 3.7+ and hence 3.6 was not fixed which enters security fix 
only mode shortly. The attached tests also pass on master and I think it will 
it be a good unittest addition to Lib/unittest/test/testmock/testwith.py 
(similar to issue32153) that has a couple of nested with statements for the 
same attribute. Adding cjw296 to the list.

----------
nosy: +cjw296, xtreak

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26704>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to