mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -7,18 +7,18 @@
|
|||
import binhex
|
||||
import os
|
||||
import unittest
|
||||
from test import test_support
|
||||
from test import support
|
||||
|
||||
|
||||
class BinHexTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.fname1 = test_support.TESTFN + "1"
|
||||
self.fname2 = test_support.TESTFN + "2"
|
||||
self.fname1 = support.TESTFN + "1"
|
||||
self.fname2 = support.TESTFN + "2"
|
||||
|
||||
def tearDown(self):
|
||||
test_support.unlink(self.fname1)
|
||||
test_support.unlink(self.fname2)
|
||||
support.unlink(self.fname1)
|
||||
support.unlink(self.fname2)
|
||||
|
||||
DATA = b'Jack is my hero'
|
||||
|
||||
|
@ -39,7 +39,7 @@ class BinHexTestCase(unittest.TestCase):
|
|||
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(BinHexTestCase)
|
||||
support.run_unittest(BinHexTestCase)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue