Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules

This commit is contained in:
Antoine Pitrou 2013-09-13 23:54:01 +02:00
parent 1d7c8c9a00
commit 356bdeb0a1
3 changed files with 4 additions and 2 deletions

View File

@ -145,3 +145,7 @@ class TestCallable(unittest.TestCase):
mock.wibble.assert_called_once_with()
self.assertRaises(TypeError, mock.wibble, 'some', 'args')
if __name__ == "__main__":
unittest.main()

View File

@ -1399,6 +1399,5 @@ class MockTest(unittest.TestCase):
mock.foo
if __name__ == '__main__':
unittest.main()

View File

@ -1780,6 +1780,5 @@ class PatchTest(unittest.TestCase):
self.assertIs(os.path, path)
if __name__ == '__main__':
unittest.main()