mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#17333: test_imaplib now works with unittest test discovery. Patch by Zachary Ware.
This commit is contained in:
parent
4f4ba16677
commit
02bf701b25
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())
|
keyfile=CERTFILE, ssl_context=self.create_ssl_context())
|
||||||
|
|
||||||
|
|
||||||
def test_main():
|
def load_tests(*args):
|
||||||
tests = [TestImaplib]
|
tests = [TestImaplib]
|
||||||
|
|
||||||
if support.is_resource_enabled('network'):
|
if support.is_resource_enabled('network'):
|
||||||
|
@ -459,9 +459,9 @@ def test_main():
|
||||||
RemoteIMAPTest, RemoteIMAP_SSLTest, RemoteIMAP_STARTTLSTest,
|
RemoteIMAPTest, RemoteIMAP_SSLTest, RemoteIMAP_STARTTLSTest,
|
||||||
])
|
])
|
||||||
|
|
||||||
support.run_unittest(*tests)
|
return unittest.TestSuite([unittest.makeSuite(test) for test in tests])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
support.use_resources = ['network']
|
support.use_resources = ['network']
|
||||||
test_main()
|
unittest.main()
|
||||||
|
|
|
@ -644,6 +644,9 @@ Tests
|
||||||
|
|
||||||
- Issue #15539: Added regression tests for Tools/scripts/pindent.py.
|
- Issue #15539: Added regression tests for Tools/scripts/pindent.py.
|
||||||
|
|
||||||
|
- Issue #17333: test_imaplib now works with unittest test discovery.
|
||||||
|
Patch by Zachary Ware.
|
||||||
|
|
||||||
- Issue #17082: test_dbm* now work with unittest test discovery.
|
- Issue #17082: test_dbm* now work with unittest test discovery.
|
||||||
Patch by Zachary Ware.
|
Patch by Zachary Ware.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue