Remove skipped test in test for async mocks. (#100559)

Remove skipped test.

See discussion on https://github.com/python/cpython/pull/25326.
Fix is apparently here, but no-one is confident to review and land: https://github.com/python/cpython/pull/25347.
This commit is contained in:
Chris Withers 2022-12-28 10:55:50 +00:00 committed by GitHub
parent 6835184a44
commit 984894a9a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -218,10 +218,6 @@ class AsyncAutospecTest(unittest.TestCase):
with self.assertRaises(RuntimeError):
create_autospec(async_func, instance=True)
@unittest.skip('Broken test from https://bugs.python.org/issue37251')
def test_create_autospec_awaitable_class(self):
self.assertIsInstance(create_autospec(AwaitableClass), AsyncMock)
def test_create_autospec(self):
spec = create_autospec(async_func_args)
awaitable = spec(1, 2, c=3)