Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
bpo-37759: Significant edits to Whatsnew 3.8 #15127
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.