add if __name__ == "__main__" in script file to avoid some issue

Bug #303432 reported by KLEIN Stéphane on 2008-11-29
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

I use zc.buildout with nose unittest utils (

When I launch nose with doctest option, I've this error :

$ bin/test --with-doctest -v
Error: Invalid option --

This issue is raise by script file because this script is load and executed by nose.

I suggest to add if __name__ == "__main__": in file.


Domen Kožar (ielectric+) wrote :

This seems like reasonable to me, any objections?

Changed in zc.buildout:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers