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
commit0226d857377abf6826571b618d05ae94d5f9a6b0 (patch)
treecacc75a6fdbe0c10f8f45120034a791dfe16e9b9 /Lib/test/test_pipes.py
parent27d9ee32abac7a580b1ffc980522535bdd20f09b (diff)
downloadcpython-git-0226d857377abf6826571b618d05ae94d5f9a6b0.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"