bpo-40462: fix variable and function names (GH-19832)

Automerge-Triggered-By: @vstinner
This commit is contained in:
Furkan Önder 2020-05-01 15:49:35 +03:00 committed by GitHub
parent 8727664557
commit 719e14d283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -50,7 +50,7 @@ class ClearTest(unittest.TestCase):
nonlocal endly
try:
yield
inner()
self.inner()
finally:
endly = True
gen = g()

View File

@ -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])