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

Bug #303432 reported by KLEIN Stéphane
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Buildout
Confirmed
Medium
Unassigned

Bug Description

I use zc.buildout with nose unittest utils (http://somethingaboutorange.com/mrl/projects/nose/).

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

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

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

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

Regards,
Stephane

Tags: bootstrap nose
Revision history for this message
KLEIN Stéphane (stephane-harobed) wrote :
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.