test/auto.py runs unittest when imported

Bug #1657919 reported by Louis Sautier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-distutils-extra
New
Undecided
Unassigned

Bug Description

Hi,
Can you enclose the call to unittest.main() inside if __name__ == "__main__"?
This way, we could import the test file to run it with py.test (for instance).

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.