Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules
This commit is contained in:
parent
1d7c8c9a00
commit
356bdeb0a1
|
@ -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()
|
||||
|
|
|
@ -1399,6 +1399,5 @@ class MockTest(unittest.TestCase):
|
|||
mock.foo
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
@ -1780,6 +1780,5 @@ class PatchTest(unittest.TestCase):
|
|||
self.assertIs(os.path, path)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue