mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
#17333: merge with 3.3.
This commit is contained in:
commit
5c67e22145
2 changed files with 6 additions and 3 deletions
|
@ -444,7 +444,7 @@ class RemoteIMAP_SSLTest(RemoteIMAPTest):
|
|||
keyfile=CERTFILE, ssl_context=self.create_ssl_context())
|
||||
|
||||
|
||||
def test_main():
|
||||
def load_tests(*args):
|
||||
tests = [TestImaplib]
|
||||
|
||||
if support.is_resource_enabled('network'):
|
||||
|
@ -459,9 +459,9 @@ def test_main():
|
|||
RemoteIMAPTest, RemoteIMAP_SSLTest, RemoteIMAP_STARTTLSTest,
|
||||
])
|
||||
|
||||
support.run_unittest(*tests)
|
||||
return unittest.TestSuite([unittest.makeSuite(test) for test in tests])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
support.use_resources = ['network']
|
||||
test_main()
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue