]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove skipped test in test for async mocks. (#100559)
authorChris Withers <chris@withers.org>
Wed, 28 Dec 2022 10:55:50 +0000 (10:55 +0000)
committerGitHub <noreply@github.com>
Wed, 28 Dec 2022 10:55:50 +0000 (10:55 +0000)
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.

Lib/test/test_unittest/testmock/testasync.py

index 471162dc50501653f1008950a52e8ca8fe31611c..5f12f9f956674ab6e24f4041a18789f895111d8c 100644 (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)