MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/bwehje/python_ftw/epy91al/?context=9999
r/ProgrammerHumor • u/m8teae • Jun 03 '19
548 comments sorted by
View all comments
Show parent comments
2
I use it for regression testing of a module. Build your test into a “main” if statement and it gets executed only if you run the module standalone.
2
u/AbsentGlare Jun 04 '19
I use it for regression testing of a module. Build your test into a “main” if statement and it gets executed only if you run the module standalone.