summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_select.py
diff options
context:
space:
mode:
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()