* Skip test_pipes on non-POSIX.

* Don't raise TestSkipped within a test function.
This commit is contained in:
Georg Brandl 2007-08-30 12:32:23 +00:00
parent 27d9ee32ab
commit 0226d85737
2 changed files with 5 additions and 3 deletions

View file

@ -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"