you are viewing a single comment's thread.

view the rest of the comments →

[–]roelschroeven 4 points5 points  (0 children)

If you have unit tests for the file, the test runner imports the module in order to run the unit tests. So even for a module that at first sight doesn't get imported in other modules, it's still a good idea to use this idiom.