bpo-37759: Significant edits to Whatsnew 3.8#15127
Conversation
ericvsmith
left a comment
There was a problem hiding this comment.
This looks great to me. Thanks for your work on this, Raymond!
Sorry, something went wrong.
|
With respect to unittest module. It now has the ability to collect async functions where before 3.8 tests have to be a normal function that could have an async definition inside and uses import asyncio
import unittest
from unittest.async_case import IsolatedAsyncioTestCase
class FooTest(IsolatedAsyncioTestCase):
async def asyncSetUp(self):
print("Async Setup")
async def test_sleep(self):
await asyncio.sleep(1)
self.assertEqual(1, 1)
async def asyncTearDown(self):
print("Async Teardown")
if __name__ == "__main__":
unittest.main()Thanks for improving the changelog examples. |
Sorry, something went wrong.
|
tirkarthi , thanks for the suggestions. I'll add the unittest example to the next round of updates (I'm making multiple PRs to minimize merge conflicts). |
Sorry, something went wrong.
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, something went wrong.
(cherry picked from commit 4f9ffc9) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Work in progress. Please add suggestions here as you find them.
https://bugs.python.org/issue37759