summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_select.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-04-30 13:49:17 (GMT)
committerGitHub <noreply@github.com>2021-04-30 13:49:17 (GMT)
commit387397f8a4244c983f4568c16a28842e3268fe5d (patch)
tree6a2408e9fa59ca87cd9edeb958330041ca7b28aa /Lib/test/test_select.py
parent5979e81a212949c62c2490167c9137d233d7de64 (diff)
downloadcpython-387397f8a4244c983f4568c16a28842e3268fe5d.zip
cpython-387397f8a4244c983f4568c16a28842e3268fe5d.tar.gz
cpython-387397f8a4244c983f4568c16a28842e3268fe5d.tar.bz2
bpo-43916: select.poll uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25750)
Diffstat (limited to 'Lib/test/test_select.py')
-rw-r--r--Lib/test/test_select.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py
index f63564e..1ef5624 100644
--- a/Lib/test/test_select.py
+++ b/Lib/test/test_select.py
@@ -87,6 +87,10 @@ class SelectTestCase(unittest.TestCase):
a[:] = [F()] * 10
self.assertEqual(select.select([], a, []), ([], a[:5], []))
+ def test_disallow_instantiation(self):
+ tp = type(select.poll())
+ self.assertRaises(TypeError, tp)
+
def tearDownModule():
support.reap_children()