This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abarry
Recipients Jiajun Huang, abarry, michael.foord
Date 2016-12-13.16:38:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
That indeed looks like a bug. Well spotted :)

That code has been there since unittest.mock was added back in March 2012. If I were to guess, I'd say that it should be `if name is None: name = ''`. Care to submit a patch?
Date User Action Args
2016-12-13 16:38:15abarrysetrecipients: + abarry, michael.foord, Jiajun Huang
2016-12-13 16:38:15abarrysetmessageid: <>
2016-12-13 16:38:15abarrylinkissue28961 messages
2016-12-13 16:38:15abarrycreate