mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-43916: select.devpoll uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25751)
This commit is contained in:
parent
9746cda705
commit
7dcf0f6db3
2 changed files with 5 additions and 9 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue