diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-13 23:54:01 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-13 23:54:01 +0200 |
commit | 356bdeb0a173d026beb614050c84c38f73b88db6 (patch) | |
tree | c531ec1e4a1a3c763f9abf3724ddc107a68d507f | |
parent | 1d7c8c9a00f57df32b6b5c055b3e5a2d11ed1f05 (diff) | |
download | cpython-356bdeb0a173d026beb614050c84c38f73b88db6.tar.gz cpython-356bdeb0a173d026beb614050c84c38f73b88db6.zip |
Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules
-rw-r--r-- | Lib/unittest/test/testmock/testcallable.py | 4 | ||||
-rw-r--r-- | Lib/unittest/test/testmock/testmock.py | 1 | ||||
-rw-r--r-- | Lib/unittest/test/testmock/testpatch.py | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/Lib/unittest/test/testmock/testcallable.py b/Lib/unittest/test/testmock/testcallable.py index 7b2dd003ea2..5390a4e10f3 100644 --- a/Lib/unittest/test/testmock/testcallable.py +++ b/Lib/unittest/test/testmock/testcallable.py @@ -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() diff --git a/Lib/unittest/test/testmock/testmock.py b/Lib/unittest/test/testmock/testmock.py index 127786c5877..8989d9b1fe1 100644 --- a/Lib/unittest/test/testmock/testmock.py +++ b/Lib/unittest/test/testmock/testmock.py @@ -1399,6 +1399,5 @@ class MockTest(unittest.TestCase): mock.foo - if __name__ == '__main__': unittest.main() diff --git a/Lib/unittest/test/testmock/testpatch.py b/Lib/unittest/test/testmock/testpatch.py index c1091b4e9b3..c1bc34fa8c9 100644 --- a/Lib/unittest/test/testmock/testpatch.py +++ b/Lib/unittest/test/testmock/testpatch.py @@ -1780,6 +1780,5 @@ class PatchTest(unittest.TestCase): self.assertIs(os.path, path) - if __name__ == '__main__': unittest.main() |