mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +00:00
* Skip test_pipes on non-POSIX.
* Don't raise TestSkipped within a test function.
This commit is contained in:
parent
27d9ee32ab
commit
0226d85737
2 changed files with 5 additions and 3 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -157,8 +157,7 @@ class WinregTests(unittest.TestCase):
|
|||
|
||||
def testRemoteMachineRegistryWorks(self):
|
||||
if not self.remote_name:
|
||||
raise test_support.TestSkipped("Remote machine name "
|
||||
"not specified.")
|
||||
return # remote machine name not specified
|
||||
remote_key = ConnectRegistry(self.remote_name, HKEY_CURRENT_USER)
|
||||
self.TestAll(remote_key)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue