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)
|
handle = MockFile(self.lines)
|
||||||
return handle
|
return handle
|
||||||
|
|
||||||
def sendall(self, buffer, flags=None):
|
def sendall(self, data, flags=None):
|
||||||
self.last = data
|
self.last = data
|
||||||
self.output.append(data)
|
self.output.append(data)
|
||||||
return len(data)
|
return len(data)
|
||||||
|
|
|
@ -50,7 +50,7 @@ class ClearTest(unittest.TestCase):
|
||||||
nonlocal endly
|
nonlocal endly
|
||||||
try:
|
try:
|
||||||
yield
|
yield
|
||||||
inner()
|
self.inner()
|
||||||
finally:
|
finally:
|
||||||
endly = True
|
endly = True
|
||||||
gen = g()
|
gen = g()
|
||||||
|
|
|
@ -188,8 +188,6 @@ class TestCommandLineArgs(unittest.TestCase):
|
||||||
program = self.program
|
program = self.program
|
||||||
for arg, attr in (('buffer', 'buffer'), ('failfast', 'failfast'),
|
for arg, attr in (('buffer', 'buffer'), ('failfast', 'failfast'),
|
||||||
('catch', 'catchbreak')):
|
('catch', 'catchbreak')):
|
||||||
if attr == 'catch' and not hasInstallHandler:
|
|
||||||
continue
|
|
||||||
|
|
||||||
setattr(program, attr, None)
|
setattr(program, attr, None)
|
||||||
program.parseArgs([None])
|
program.parseArgs([None])
|
||||||
|
|
Loading…
Reference in New Issue