commit | 7dcf0f6db38b7ab6918608542d3a0c6da0a286af | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Apr 30 18:19:57 2021 +0200 |
committer | GitHub <noreply@github.com> | Fri Apr 30 18:19:57 2021 +0200 |
tree | 3b74a0dd47b013cdec2258c2c714ffa4103351e4 | |
parent | 9746cda705decebc0ba572d95612796afd06dcd4 [diff] [blame] |
bpo-43916: select.devpoll uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25751)
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py index 1ef5624..957a633 100644 --- a/Lib/test/test_select.py +++ b/Lib/test/test_select.py
@@ -91,6 +91,10 @@ def test_disallow_instantiation(self): 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()