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
|
@ -3,7 +3,7 @@
|
|||
"""
|
||||
|
||||
import unittest
|
||||
from test import test_support
|
||||
from test import support
|
||||
import os
|
||||
import gzip
|
||||
|
||||
|
@ -22,13 +22,13 @@ data2 = b"""/* zlibmodule.c -- gzip-compatible data compression */
|
|||
|
||||
|
||||
class TestGzip(unittest.TestCase):
|
||||
filename = test_support.TESTFN
|
||||
filename = support.TESTFN
|
||||
|
||||
def setUp (self):
|
||||
test_support.unlink(self.filename)
|
||||
support.unlink(self.filename)
|
||||
|
||||
def tearDown (self):
|
||||
test_support.unlink(self.filename)
|
||||
support.unlink(self.filename)
|
||||
|
||||
|
||||
def test_write (self):
|
||||
|
@ -158,7 +158,7 @@ class TestGzip(unittest.TestCase):
|
|||
f.close()
|
||||
|
||||
def test_main(verbose=None):
|
||||
test_support.run_unittest(TestGzip)
|
||||
support.run_unittest(TestGzip)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main(verbose=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue