]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40462: fix variable and function names (GH-19832)
authorFurkan Önder <furkantahaonder@gmail.com>
Fri, 1 May 2020 12:49:35 +0000 (15:49 +0300)
committerGitHub <noreply@github.com>
Fri, 1 May 2020 12:49:35 +0000 (05:49 -0700)
Automerge-Triggered-By: @vstinner
Lib/test/mock_socket.py
Lib/test/test_frame.py
Lib/unittest/test/test_program.py

index b28c4732cc3c2a64bcbdbeec167d3157e5f46db2..cda4db25cba59446aa315e78c3f6e0b92134fbb5 100644 (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)
index d6aa2834cbc28b749b32f7daa412be296d5f68ca..a8696f011f9453d8991373495aa4f6093d2c634b 100644 (file)
@@ -50,7 +50,7 @@ class ClearTest(unittest.TestCase):
             nonlocal endly
             try:
                 yield
-                inner()
+                self.inner()
             finally:
                 endly = True
         gen = g()
index 4a62ae1b11306ecc843f34add0ae265d147529c1..eef82ff937ab7c038ad01622fd996e02c6dbdd39 100644 (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])