bpo-43916: select.devpoll uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25751)

This commit is contained in:
Victor Stinner 2021-04-30 18:19:57 +02:00 committed by GitHub
parent 9746cda705
commit 7dcf0f6db3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View file

@ -91,6 +91,10 @@ class SelectTestCase(unittest.TestCase):
tp = type(select.poll())
self.assertRaises(TypeError, tp)
if hasattr(select, 'devpoll'):
tp = type(select.devpoll())
self.assertRaises(TypeError, tp)
def tearDownModule():
support.reap_children()