diff options
author | Georg Brandl <georg@python.org> | 2007-08-30 12:32:23 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-30 12:32:23 +0000 |
commit | 469c2ef34b0034d0c99014a606a8b27cefe7f1cf (patch) | |
tree | df0fc2561e984e13e244ceddf21eb6df13d786fd /Lib/test/test_pipes.py | |
parent | ca503e0380ab43048231f103230caea37e76eee9 (diff) | |
download | cpython-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.py | 5 |
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" |