[Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files
robertc at robertcollins.net
Tue Apr 30 18:41:45 EDT 2019
They were never needed 😁
Removal is fine with me.
On Wed, 1 May 2019, 09:27 Chris Withers, <chris at withers.org> wrote:
> Hi All,
> I have a crazy idea of getting unittest.mock up to 100% code coverage.
> I noticed at the bottom of all of the test files in testmock/, there's a:
> if __name__ == '__main__':
> How would people feel about these going away? I don't *think* they're
> needed now that we have unittest discover, but thought I'd ask.
> Python-Dev mailing list
> Python-Dev at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev