From 876238a134d6f0332eeea57e03c3858b452895a1 Mon Sep 17 00:00:00 2001 From: Christian Schwede Date: Tue, 20 May 2014 14:49:49 +0000 Subject: Remove testtools.main() call from tests There is no testtools.main() at all (this was a unittest.main() before). Let's remove this unused and non-working code. The following code can be used if someone needs to start tests manually: python -m unittest Change-Id: Id5162ac73825584df6c23dbe68786ff3355fc6ae --- tests/functional/test_swiftclient.py | 5 ----- tests/unit/test_multithreading.py | 4 ---- tests/unit/test_swiftclient.py | 4 ---- 3 files changed, 13 deletions(-) diff --git a/tests/functional/test_swiftclient.py b/tests/functional/test_swiftclient.py index 6631d36..328efac 100644 --- a/tests/functional/test_swiftclient.py +++ b/tests/functional/test_swiftclient.py @@ -17,7 +17,6 @@ import os import testtools import time import types -import unittest from io import BytesIO from six.moves import configparser @@ -284,7 +283,3 @@ class TestFunctional(testtools.TestCase): def test_get_capabilities(self): resp = self.conn.get_capabilities() self.assertTrue(resp.get('swift')) - - -if __name__ == '__main__': - unittest.main() diff --git a/tests/unit/test_multithreading.py b/tests/unit/test_multithreading.py index 875e43a..1df0d4f 100644 --- a/tests/unit/test_multithreading.py +++ b/tests/unit/test_multithreading.py @@ -341,7 +341,3 @@ class TestMultiThreadingManager(ThreadTestCase): ], list(err_stream.readlines())) self.assertEqual(3, thread_manager.error_count) - - -if __name__ == '__main__': - testtools.main() diff --git a/tests/unit/test_swiftclient.py b/tests/unit/test_swiftclient.py index 0819475..cb2dc30 100644 --- a/tests/unit/test_swiftclient.py +++ b/tests/unit/test_swiftclient.py @@ -1148,7 +1148,3 @@ class TestCloseConnection(MockHttpTest): conn.close() self.assertEqual(http_conn_obj.isclosed(), True) self.assertEqual(conn.http_conn, None) - - -if __name__ == '__main__': - testtools.main() -- cgit v1.2.1