mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
#17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware.
This commit is contained in:
parent
520378f81d
commit
f79493bf9e
5 changed files with 17 additions and 28 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue