From e88f67a4a1044b7d6fbd0511f397b59322ec8263 Mon Sep 17 00:00:00 2001 From: Shawn Hartsock Date: Fri, 25 Jul 2014 13:06:27 -0400 Subject: [PATCH] python3: unittest define main Code change to unit tests for python3. partial: https://github.com/vmware/pyvmomi/issues/55 --- test-requirements.txt | 1 - tests/test_connect.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 2dbe92f..f1779d3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,4 @@ contextdecorator -mock PyYAML>=3.11 testtools>=0.9.34 vcrpy diff --git a/tests/test_connect.py b/tests/test_connect.py index 03afc04..b5bb425 100644 --- a/tests/test_connect.py +++ b/tests/test_connect.py @@ -62,3 +62,6 @@ class ConnectionTests(unittest.TestCase): # NOTE (hartsock): assertIsNotNone does not work in Python 2.6 self.assertTrue(session_id is not None) self.assertEqual('52773cd3-35c6-b40a-17f1-fe664a9f08f3', session_id) + +if __name__ == '__main__': + unittest.main() \ No newline at end of file