Nick Coghlan <ncogh...@gmail.com> added the comment:

Explicitly spelling out __qualname__ like that makes the tests a bit too 
sensitive to otherwise irrelevant details of the test layout.

I suggest using comparisons like "self.assertEqual(wrapper.__qualname__, 
f.__qualname__)" and "self.assertNotEqual(wrapper.__qualname__, 
f.__qualname__)" to make sure they're the same or different as appropriate, 
without caring about their precise value (this is similar to what the tests 
already do for "dict_attr")

----------
stage: needs patch -> patch review

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

Reply via email to