Commit 469c2ef3 authored by Georg Brandl's avatar Georg Brandl

* Skip test_pipes on non-POSIX.

* Don't raise TestSkipped within a test function.
parent ca503e03
...@@ -2,7 +2,10 @@ import pipes ...@@ -2,7 +2,10 @@ import pipes
import os import os
import string import string
import unittest 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" TESTFN2 = TESTFN + "2"
......
...@@ -157,8 +157,7 @@ class WinregTests(unittest.TestCase): ...@@ -157,8 +157,7 @@ class WinregTests(unittest.TestCase):
def testRemoteMachineRegistryWorks(self): def testRemoteMachineRegistryWorks(self):
if not self.remote_name: if not self.remote_name:
raise test_support.TestSkipped("Remote machine name " return # remote machine name not specified
"not specified.")
remote_key = ConnectRegistry(self.remote_name, HKEY_CURRENT_USER) remote_key = ConnectRegistry(self.remote_name, HKEY_CURRENT_USER)
self.TestAll(remote_key) self.TestAll(remote_key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment