From 719e14d2837520c18398a3e22a36f20c1fe76edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20=C3=96nder?= Date: Fri, 1 May 2020 15:49:35 +0300 Subject: [PATCH] bpo-40462: fix variable and function names (GH-19832) Automerge-Triggered-By: @vstinner --- Lib/test/mock_socket.py | 2 +- Lib/test/test_frame.py | 2 +- Lib/unittest/test/test_program.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Lib/test/mock_socket.py b/Lib/test/mock_socket.py index b28c4732cc3..cda4db25cba 100644 --- a/Lib/test/mock_socket.py +++ b/Lib/test/mock_socket.py @@ -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) diff --git a/Lib/test/test_frame.py b/Lib/test/test_frame.py index d6aa2834cbc..a8696f011f9 100644 --- a/Lib/test/test_frame.py +++ b/Lib/test/test_frame.py @@ -50,7 +50,7 @@ class ClearTest(unittest.TestCase): nonlocal endly try: yield - inner() + self.inner() finally: endly = True gen = g() diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_program.py index 4a62ae1b113..eef82ff937a 100644 --- a/Lib/unittest/test/test_program.py +++ b/Lib/unittest/test/test_program.py @@ -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])