mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Change more tests to use import_module for the modules that
should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
This commit is contained in:
parent
dc340eedaa
commit
3db8a3432b
17 changed files with 53 additions and 43 deletions
|
@ -17,20 +17,19 @@ import copy
|
|||
import socket
|
||||
import random
|
||||
import logging
|
||||
import test_support
|
||||
|
||||
|
||||
_multiprocessing = test_support.import_module('_multiprocessing')
|
||||
|
||||
# Work around broken sem_open implementations
|
||||
try:
|
||||
import multiprocessing.synchronize
|
||||
except ImportError, e:
|
||||
raise unittest.SkipTest(e)
|
||||
test_support.import_module('multiprocessing.synchronize')
|
||||
|
||||
import multiprocessing.dummy
|
||||
import multiprocessing.connection
|
||||
import multiprocessing.managers
|
||||
import multiprocessing.heap
|
||||
import multiprocessing.pool
|
||||
import _multiprocessing
|
||||
|
||||
from multiprocessing import util
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue