diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-19 22:58:06 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-19 22:58:06 +0100 |
commit | edf89877523352574f74c9076bc8de752d6e8507 (patch) | |
tree | 2459479aeaf5f9abd1316d4bda6cd581bc4a21b5 | |
parent | 4f8bdd230a7532dc31e302bcc55276ed6704df0b (diff) | |
download | aioeventlet-edf89877523352574f74c9076bc8de752d6e8507.tar.gz |
tests: each file is now executable
-rw-r--r-- | tests/test_add_reader.py | 5 | ||||
-rw-r--r-- | tests/test_callback.py | 5 | ||||
-rw-r--r-- | tests/test_coroutine.py | 5 | ||||
-rw-r--r-- | tests/test_network.py | 5 | ||||
-rw-r--r-- | tests/test_thread.py | 5 | ||||
-rw-r--r-- | tests/test_timer.py | 5 |
6 files changed, 30 insertions, 0 deletions
diff --git a/tests/test_add_reader.py b/tests/test_add_reader.py index 14262ba..947bec6 100644 --- a/tests/test_add_reader.py +++ b/tests/test_add_reader.py @@ -25,3 +25,8 @@ class AddReaderTests(tests.TestCase): self.loop.run_forever() self.assertEqual(result['received'], b'abc') + + +if __name__ == '__main__': + import unittest + unittest.main() diff --git a/tests/test_callback.py b/tests/test_callback.py index 987960b..5b306de 100644 --- a/tests/test_callback.py +++ b/tests/test_callback.py @@ -32,3 +32,8 @@ class CallbackTests(tests.TestCase): self.loop.run_forever() self.assertEqual(result, ["Hello", "World"]) + + +if __name__ == '__main__': + import unittest + unittest.main() diff --git a/tests/test_coroutine.py b/tests/test_coroutine.py index 3dbe5db..2b4723a 100644 --- a/tests/test_coroutine.py +++ b/tests/test_coroutine.py @@ -25,3 +25,8 @@ class CallbackTests(tests.TestCase): result = [] self.loop.run_until_complete(hello_world(result, 0.001)) self.assertEqual(result, ['Hello', 'World']) + + +if __name__ == '__main__': + import unittest + unittest.main() diff --git a/tests/test_network.py b/tests/test_network.py index b1e9731..8cc497c 100644 --- a/tests/test_network.py +++ b/tests/test_network.py @@ -73,3 +73,8 @@ class NetworkTests(tests.TestCase): self.loop.run_forever() self.assertEqual(proto.state, 'closed') self.assertEqual(proto.received, message) + + +if __name__ == '__main__': + import unittest + unittest.main() diff --git a/tests/test_thread.py b/tests/test_thread.py index 1f5c0e7..f6e679d 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -53,3 +53,8 @@ class ThreadTests(tests.TestCase): fut = self.loop.run_in_executor(None, work) self.loop.run_until_complete(fut) self.assertIsNone(result['loop']) + + +if __name__ == '__main__': + import unittest + unittest.main() diff --git a/tests/test_timer.py b/tests/test_timer.py index 17fdd8e..8ac6ed1 100644 --- a/tests/test_timer.py +++ b/tests/test_timer.py @@ -41,3 +41,8 @@ class TimerTests(tests.TestCase): self.loop.run_forever() self.assertEqual(result, ["Hello", "World"]) + + +if __name__ == '__main__': + import unittest + unittest.main() |