summaryrefslogtreecommitdiff
path: root/Lib/test/test_pipes.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-30 12:32:23 +0000
committerGeorg Brandl <georg@python.org>2007-08-30 12:32:23 +0000
commit469c2ef34b0034d0c99014a606a8b27cefe7f1cf (patch)
treedf0fc2561e984e13e244ceddf21eb6df13d786fd /Lib/test/test_pipes.py
parentca503e0380ab43048231f103230caea37e76eee9 (diff)
downloadcpython-469c2ef34b0034d0c99014a606a8b27cefe7f1cf.tar.gz
* Skip test_pipes on non-POSIX.
* Don't raise TestSkipped within a test function.
Diffstat (limited to 'Lib/test/test_pipes.py')
-rw-r--r--Lib/test/test_pipes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_pipes.py b/Lib/test/test_pipes.py
index 70d1ec2b94..a440ac1c92 100644
--- a/Lib/test/test_pipes.py
+++ b/Lib/test/test_pipes.py
@@ -2,7 +2,10 @@ import pipes
import os
import string
import unittest
-from test.test_support import TESTFN, run_unittest, unlink
+from test.test_support import TESTFN, run_unittest, unlink, TestSkipped
+
+if os.name != 'posix':
+ raise TestSkipped('pipes module only works on posix')
TESTFN2 = TESTFN + "2"