Changeset 391 for python/trunk/Lib/test/test_select.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_select.py
r2 r391 5 5 import sys 6 6 7 @unittest.skipIf(sys.platform[:3] in ('win', 'os2', 'riscos'), 8 "can't easily test on this system") 7 9 class SelectTestCase(unittest.TestCase): 8 10 … … 20 22 self.assertRaises(TypeError, select.select, [], [], [], "not a number") 21 23 24 def test_returned_list_identity(self): 25 # See issue #8329 26 r, w, x = select.select([], [], [], 1) 27 self.assertIsNot(r, w) 28 self.assertIsNot(r, x) 29 self.assertIsNot(w, x) 30 22 31 def test_select(self): 23 if sys.platform[:3] in ('win', 'mac', 'os2', 'riscos'):24 if test_support.verbose:25 print "Can't test select easily on", sys.platform26 return27 32 cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done' 28 33 p = os.popen(cmd, 'r') … … 45 50 p.close() 46 51 52 # Issue 16230: Crash on select resized list 53 def test_select_mutated(self): 54 a = [] 55 class F: 56 def fileno(self): 57 del a[-1] 58 return sys.__stdout__.fileno() 59 a[:] = [F()] * 10 60 self.assertEqual(select.select([], a, []), ([], a[:5], [])) 47 61 48 62 def test_main():
Note:
See TracChangeset
for help on using the changeset viewer.