[Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files
Chris Withers
chris at withers.org
Tue Apr 30 17:24:53 EDT 2019
More information about the Python-Dev mailing list
Tue Apr 30 17:24:53 EDT 2019
- Previous message (by thread): [Python-Dev] drop jython support in mock backport?
- Next message (by thread): [Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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__': unittest.main() ...block. 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. Chris
- Previous message (by thread): [Python-Dev] drop jython support in mock backport?
- Next message (by thread): [Python-Dev] "if __name__ == '__main__'" at the bottom of python unittest files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list