Buildout -- Software for automating application assembly

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

Reported by KLEIN Stéphane on 2008-11-29
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Buildout
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

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