commit | 387397f8a4244c983f4568c16a28842e3268fe5d | [log] [tgz] |
---|---|---|
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | Fri Apr 30 15:49:17 2021 +0200 |
committer | GitHub <noreply@github.com> | Fri Apr 30 15:49:17 2021 +0200 |
tree | 6a2408e9fa59ca87cd9edeb958330041ca7b28aa | |
parent | 5979e81a212949c62c2490167c9137d233d7de64 [diff] [blame] |
bpo-43916: select.poll uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25750)
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 @@ def fileno(self): 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()