]> granicus.if.org Git - python/commitdiff
remove use of 2.7 unittest features
authorBenjamin Peterson <benjamin@python.org>
Wed, 7 Apr 2010 20:40:30 +0000 (20:40 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 7 Apr 2010 20:40:30 +0000 (20:40 +0000)
Lib/test/test_select.py

index 647d71ef20946c7dbe2134acb6ba9ad23eb59fa2..f596862d154bfa0524529e3c612ec4f36d4aa310 100644 (file)
@@ -4,8 +4,6 @@ import select
 import os
 import sys
 
-@unittest.skipIf(sys.platform[:3] in ('win', 'mac', 'os2', 'riscos'),
-                 "can't easily test on this system")
 class SelectTestCase(unittest.TestCase):
 
     class Nope:
@@ -24,11 +22,15 @@ class SelectTestCase(unittest.TestCase):
     def test_returned_list_identity(self):
         # See issue #8329
         r, w, x = select.select([], [], [], 1)
-        self.assertIsNot(r, w)
-        self.assertIsNot(r, x)
-        self.assertIsNot(w, x)
+        self.assertFalse(r is w)
+        self.assertFalse(r is x)
+        self.assertFalse(w is x)
 
     def test_select(self):
+        if sys.platform[:3] in ('win', 'mac', 'os2'):
+            if test_support.verbose:
+                print "can't easily test on this system"
+            return
         cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
         p = os.popen(cmd, 'r')
         for tout in (0, 1, 2, 4, 8, 16) + (None,)*10: