mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -7,7 +7,11 @@ import sys
|
|||
import tempfile
|
||||
import time
|
||||
import unittest
|
||||
from test.test_support import requires, verbose, run_unittest, unlink, rmtree
|
||||
from test.test_support import (requires, verbose, run_unittest, unlink, rmtree,
|
||||
import_module)
|
||||
|
||||
#Skip test if bsddb cannot import _bsddb.
|
||||
import_module('bsddb')
|
||||
|
||||
# When running as a script instead of within the regrtest framework, skip the
|
||||
# requires test, since it's obvious we want to run them.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue