summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-07 20:40:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-07 20:40:30 (GMT)
commit1b21be266269ad8f1517d8ae28ff329b28429781 (patch)
treec991acd5448c993ec089cbd7b0978fad505b6505 /Lib/test
parent29b8781c65dcd370090288cd338a1614efc3063b (diff)
downloadcpython-1b21be266269ad8f1517d8ae28ff329b28429781.zip
cpython-1b21be266269ad8f1517d8ae28ff329b28429781.tar.gz
cpython-1b21be266269ad8f1517d8ae28ff329b28429781.tar.bz2
remove use of 2.7 unittest features
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_select.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py
index 647d71e..f596862 100644
--- a/Lib/test/test_select.py
+++ b/Lib/test/test_select.py
@@ -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: