From 842acaab1376c5c84fd5966bb6070e289880e1ca Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Mon, 17 Dec 2018 07:52:45 -0700 Subject: bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) --- Lib/test/test_asyncio/test_futures.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Lib/test/test_asyncio/test_futures.py') diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index 3339356209..2e4583d124 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -570,6 +570,13 @@ class CFutureTests(BaseFutureTests, test_utils.TestCase): except AttributeError: cls = None + def test_future_del_segfault(self): + fut = self._new_future(loop=self.loop) + with self.assertRaises(AttributeError): + del fut._asyncio_future_blocking + with self.assertRaises(AttributeError): + del fut._log_traceback + @unittest.skipUnless(hasattr(futures, '_CFuture'), 'requires the C _asyncio module') -- cgit v1.2.1