bpo-40462: fix variable and function names (GH-19832)
Automerge-Triggered-By: @vstinner
This commit is contained in:
parent
8727664557
commit
719e14d283
|
@ -91,7 +91,7 @@ class MockSocket:
|
|||
handle = MockFile(self.lines)
|
||||
return handle
|
||||
|
||||
def sendall(self, buffer, flags=None):
|
||||
def sendall(self, data, flags=None):
|
||||
self.last = data
|
||||
self.output.append(data)
|
||||
return len(data)
|
||||
|
|
|
@ -50,7 +50,7 @@ class ClearTest(unittest.TestCase):
|
|||
nonlocal endly
|
||||
try:
|
||||
yield
|
||||
inner()
|
||||
self.inner()
|
||||
finally:
|
||||
endly = True
|
||||
gen = g()
|
||||
|
|
|
@ -188,8 +188,6 @@ class TestCommandLineArgs(unittest.TestCase):
|
|||
program = self.program
|
||||
for arg, attr in (('buffer', 'buffer'), ('failfast', 'failfast'),
|
||||
('catch', 'catchbreak')):
|
||||
if attr == 'catch' and not hasInstallHandler:
|
||||
continue
|
||||
|
||||
setattr(program, attr, None)
|
||||
program.parseArgs([None])
|
||||
|
|
Loading…
Reference in New Issue