test/auto.py runs unittest when imported
Bug #1657919 reported by
Louis Sautier
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.