summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdbm.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-03-30 23:05:48 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-03-30 23:05:48 (GMT)
commit3db8a3432bd84b58bdc7da2c9872777c537a4d09 (patch)
tree1a274c25cb002b9cb4474ff0882e2e5a563f9038 /Lib/test/test_gdbm.py
parentdc340eedaa71bb6a86fd887a807020ccf1cbf520 (diff)
downloadcpython-3db8a3432bd84b58bdc7da2c9872777c537a4d09.zip
cpython-3db8a3432bd84b58bdc7da2c9872777c537a4d09.tar.gz
cpython-3db8a3432bd84b58bdc7da2c9872777c537a4d09.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_gdbm.py')
-rwxr-xr-xLib/test/test_gdbm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_gdbm.py b/Lib/test/test_gdbm.py
index 76689f0..131d22b 100755
--- a/Lib/test/test_gdbm.py
+++ b/Lib/test/test_gdbm.py
@@ -1,7 +1,8 @@
-import gdbm
import unittest
import os
-from test.test_support import verbose, TESTFN, run_unittest, unlink
+from test.test_support import (verbose, TESTFN, run_unittest, unlink,
+ import_module)
+gdbm = import_module('gdbm')
filename = TESTFN