diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-01 11:23:28 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-01 11:23:28 +0200 |
commit | f79493bf9ebb191f06083fdcd0bce4626641b4ac (patch) | |
tree | 036c52baa9fd0bc239a8ffc67c2f271f1c6a4c8d /Lib/test/test_dbm_dumb.py | |
parent | 520378f81d30105d421e7b3a53c30fb0346be269 (diff) | |
download | cpython-f79493bf9ebb191f06083fdcd0bce4626641b4ac.tar.gz cpython-f79493bf9ebb191f06083fdcd0bce4626641b4ac.zip |
#17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware.
Diffstat (limited to 'Lib/test/test_dbm_dumb.py')
-rw-r--r-- | Lib/test/test_dbm_dumb.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/test/test_dbm_dumb.py b/Lib/test/test_dbm_dumb.py index 6b981c429df..e23392959a8 100644 --- a/Lib/test/test_dbm_dumb.py +++ b/Lib/test/test_dbm_dumb.py @@ -29,9 +29,6 @@ class DumbDBMTestCase(unittest.TestCase): '\u00fc'.encode('utf-8') : b'!', } - def __init__(self, *args): - unittest.TestCase.__init__(self, *args) - def test_dumbdbm_creation(self): f = dumbdbm.open(_fname, 'c') self.assertEqual(list(f.keys()), []) @@ -195,11 +192,6 @@ class DumbDBMTestCase(unittest.TestCase): def setUp(self): _delete_files() -def test_main(): - try: - support.run_unittest(DumbDBMTestCase) - finally: - _delete_files() if __name__ == "__main__": - test_main() + unittest.main() |