test/auto.py runs unittest when imported

Bug #1657919 reported by Louis Sautier on 2017-01-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-distutils-extra
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  Edit
Everyone can see this information.

Other bug subscribers