summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm_ndbm.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_ndbm.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_ndbm.py')
-rwxr-xr-xLib/test/test_dbm_ndbm.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_dbm_ndbm.py b/Lib/test/test_dbm_ndbm.py
index 00dcbd2..f9d3bef 100755
--- a/Lib/test/test_dbm_ndbm.py
+++ b/Lib/test/test_dbm_ndbm.py
@@ -36,8 +36,5 @@ class DbmTestCase(unittest.TestCase):
except error:
self.fail()
-def test_main():
- support.run_unittest(DbmTestCase)
-
if __name__ == '__main__':
- test_main()
+ unittest.main()