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 | 0226d857377abf6826571b618d05ae94d5f9a6b0 (patch) | |
tree | cacc75a6fdbe0c10f8f45120034a791dfe16e9b9 /Lib/test/test_pipes.py | |
parent | 27d9ee32abac7a580b1ffc980522535bdd20f09b (diff) | |
download | cpython-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.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" |