mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +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
|
@ -1,10 +1,9 @@
|
|||
import unittest
|
||||
from test.test_support import run_unittest
|
||||
from test.test_support import run_unittest, import_module
|
||||
|
||||
#Skip test of _sqlite3 module not installed
|
||||
import_module('_sqlite3')
|
||||
|
||||
try:
|
||||
import _sqlite3
|
||||
except ImportError:
|
||||
raise unittest.SkipTest('no sqlite available')
|
||||
from sqlite3.test import (dbapi, types, userfunctions, py25tests,
|
||||
factory, transactions, hooks, regression,
|
||||
dump)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue