summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm_gnu.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-01 09:23:28 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-01 09:23:28 (GMT)
commitf79493bf9ebb191f06083fdcd0bce4626641b4ac (patch)
tree036c52baa9fd0bc239a8ffc67c2f271f1c6a4c8d /Lib/test/test_dbm_gnu.py
parent520378f81d30105d421e7b3a53c30fb0346be269 (diff)
downloadcpython-f79493bf9ebb191f06083fdcd0bce4626641b4ac.zip
cpython-f79493bf9ebb191f06083fdcd0bce4626641b4ac.tar.gz
cpython-f79493bf9ebb191f06083fdcd0bce4626641b4ac.tar.bz2
#17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware.
Diffstat (limited to 'Lib/test/test_dbm_gnu.py')
-rwxr-xr-xLib/test/test_dbm_gnu.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py
index 30a39f7..bf62946 100755
--- a/Lib/test/test_dbm_gnu.py
+++ b/Lib/test/test_dbm_gnu.py
@@ -2,7 +2,7 @@ from test import support
gdbm = support.import_module("dbm.gnu") #skip if not supported
import unittest
import os
-from test.support import verbose, TESTFN, run_unittest, unlink
+from test.support import verbose, TESTFN, unlink
filename = TESTFN
@@ -81,8 +81,5 @@ class TestGdbm(unittest.TestCase):
self.assertTrue(size1 > size2 >= size0)
-def test_main():
- run_unittest(TestGdbm)
-
if __name__ == '__main__':
- test_main()
+ unittest.main()