To: python-checkins@python.org Subject: bpo-40462: fix variable and function names (GH-19832) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 https://github.com/python/cpython/commit/719e14d2837520c18398a3e22a36f20c1fe... 6edf commit: 719e14d2837520c18398a3e22a36f20c1fe76edf branch: master author: Furkan =C3=96nder <furkantahaonder@gmail.com> committer: GitHub <noreply@github.com> date: 2020-05-01T05:49:35-07:00 summary: bpo-40462: fix variable and function names (GH-19832) Automerge-Triggered-By: @vstinner files: M Lib/test/mock_socket.py M Lib/test/test_frame.py M Lib/unittest/test/test_program.py diff --git a/Lib/test/mock_socket.py b/Lib/test/mock_socket.py index b28c4732cc3c2..cda4db25cba59 100644 --- a/Lib/test/mock_socket.py +++ b/Lib/test/mock_socket.py @@ -91,7 +91,7 @@ def makefile(self, mode=3D'r', bufsize=3D-1): handle =3D MockFile(self.lines) return handle =20 - def sendall(self, buffer, flags=3DNone): + def sendall(self, data, flags=3DNone): self.last =3D data self.output.append(data) return len(data) diff --git a/Lib/test/test_frame.py b/Lib/test/test_frame.py index d6aa2834cbc28..a8696f011f945 100644 --- a/Lib/test/test_frame.py +++ b/Lib/test/test_frame.py @@ -50,7 +50,7 @@ def g(): nonlocal endly try: yield - inner() + self.inner() finally: endly =3D True gen =3D g() diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_progr= am.py index 4a62ae1b11306..eef82ff937ab7 100644 --- a/Lib/unittest/test/test_program.py +++ b/Lib/unittest/test/test_program.py @@ -188,8 +188,6 @@ def testBufferCatchFailfast(self): program =3D self.program for arg, attr in (('buffer', 'buffer'), ('failfast', 'failfast'), ('catch', 'catchbreak')): - if attr =3D=3D 'catch' and not hasInstallHandler: - continue =20 setattr(program, attr, None) program.parseArgs([None])
participants (1)
-
Furkan Önder