Remove unittest.main() in test modules.

This construct isn't used anymore these days.

Running python tests/test_foo.py puts the tests/ directory on
PYTHONPATH, which isn't representative of how we run tests.

Use python -m unittest tests/test_foo.py instead.
This commit is contained in:
Aymeric Augustin committed 2019-12-22 14:42:03 +01:00
1 parent 6be7cdda66
commit 7e98e211f0
51 files changed
-258

No files matched your search

-4
View File
@@ -150,7 +150,3 @@ class ScheduleInitTest(unittest.TestCase):
)
lrs_2 = unwrap_and_save_reload_schedule(scheduler, self.num_steps)
self.assertListEqual([l[0] for l in lrs], [l[0] for l in lrs_2])
if __name__ == "__main__":
unittest.main()