mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Add import_function method to test.test_support, and modify a number of
tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
This commit is contained in:
parent
bb8cb0e192
commit
59beec326a
20 changed files with 78 additions and 41 deletions
|
@ -2,8 +2,9 @@
|
|||
"""Whimpy test script for the cd module
|
||||
Roger E. Masse
|
||||
"""
|
||||
import cd
|
||||
from test.test_support import verbose
|
||||
from test.test_support import verbose, import_module
|
||||
|
||||
cd = import_module('cd')
|
||||
|
||||
cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED', 'PLAYING', 'READY',
|
||||
'STILL', '__doc__', '__name__', 'atime', 'audio', 'catalog', 'control', 'createparser', 'error',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue