mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#2621 rename test.test_support to test.support
This commit is contained in:
parent
6a654814ea
commit
ee8712cda4
358 changed files with 1308 additions and 1307 deletions
|
@ -1,4 +1,4 @@
|
|||
from test import test_support
|
||||
from test import support
|
||||
import unittest
|
||||
import os
|
||||
import random
|
||||
|
@ -8,13 +8,13 @@ from dbm import error
|
|||
class DbmTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.filename = test_support.TESTFN
|
||||
self.filename = support.TESTFN
|
||||
self.d = dbm.open(self.filename, 'c')
|
||||
self.d.close()
|
||||
|
||||
def tearDown(self):
|
||||
for suffix in ['', '.pag', '.dir', '.db']:
|
||||
test_support.unlink(self.filename + suffix)
|
||||
support.unlink(self.filename + suffix)
|
||||
|
||||
def test_keys(self):
|
||||
self.d = dbm.open(self.filename, 'c')
|
||||
|
@ -34,7 +34,7 @@ class DbmTestCase(unittest.TestCase):
|
|||
self.fail()
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(DbmTestCase)
|
||||
support.run_unittest(DbmTestCase)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue