mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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,12 +7,12 @@ import threading
|
|||
import sys
|
||||
import time
|
||||
|
||||
from test import test_support
|
||||
from test.test_support import TESTFN, run_unittest, unlink
|
||||
from test import support
|
||||
from test.support import TESTFN, run_unittest, unlink
|
||||
from io import BytesIO
|
||||
from io import StringIO
|
||||
|
||||
HOST = test_support.HOST
|
||||
HOST = support.HOST
|
||||
|
||||
class dummysocket:
|
||||
def __init__(self):
|
||||
|
@ -334,7 +334,7 @@ class DispatcherWithSendTests(unittest.TestCase):
|
|||
self.evt = threading.Event()
|
||||
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.sock.settimeout(3)
|
||||
self.port = test_support.bind_port(self.sock)
|
||||
self.port = support.bind_port(self.sock)
|
||||
|
||||
cap = BytesIO()
|
||||
args = (self.evt, cap, self.sock)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue