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

View File

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

View File

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