diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-03-30 19:04:00 +0000 |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-03-30 19:04:00 +0000 |
commit | 59beec326a4721154a952027cb34c3e2e4612e28 (patch) | |
tree | fd6ff5a872e8b8624a6aad51423f4a0a5ec6eaad /Lib/test/test_macostools.py | |
parent | bb8cb0e192c1da800fee1d08b13534ca3db4d53a (diff) | |
download | cpython-git-59beec326a4721154a952027cb34c3e2e4612e28.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_macostools.py')
-rw-r--r-- | Lib/test/test_macostools.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py index 6110ce3dff..b84ad7202e 100644 --- a/Lib/test/test_macostools.py +++ b/Lib/test/test_macostools.py @@ -1,13 +1,15 @@ # Copyright (C) 2003 Python Software Foundation import unittest -import macostools -import Carbon.File -import MacOS import os import sys from test import test_support +MacOS = test_support.import_module('MacOS') +#The following modules should exist if MacOS exists. +import Carbon.File +import macostools + TESTFN2 = test_support.TESTFN + '2' class TestMacostools(unittest.TestCase): |