summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-09-13 21:54:01 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-09-13 21:54:01 (GMT)
commit356bdeb0a173d026beb614050c84c38f73b88db6 (patch)
treec531ec1e4a1a3c763f9abf3724ddc107a68d507f /Lib/unittest
parent1d7c8c9a00f57df32b6b5c055b3e5a2d11ed1f05 (diff)
downloadcpython-356bdeb0a173d026beb614050c84c38f73b88db6.zip
cpython-356bdeb0a173d026beb614050c84c38f73b88db6.tar.gz
cpython-356bdeb0a173d026beb614050c84c38f73b88db6.tar.bz2
Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/test/testmock/testcallable.py4
-rw-r--r--Lib/unittest/test/testmock/testmock.py1
-rw-r--r--Lib/unittest/test/testmock/testpatch.py1
3 files changed, 4 insertions, 2 deletions
diff --git a/Lib/unittest/test/testmock/testcallable.py b/Lib/unittest/test/testmock/testcallable.py
index 7b2dd00..5390a4e 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 127786c..8989d9b 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 c1091b4..c1bc34f 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()