]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44980: fix test_constructor to return None value (GH-27898)
authorandrei kulakov <andrei.avk@gmail.com>
Mon, 23 Aug 2021 18:50:46 +0000 (14:50 -0400)
committerGitHub <noreply@github.com>
Mon, 23 Aug 2021 18:50:46 +0000 (20:50 +0200)
Lib/test/test_code.py

index 9d6b465115ca269656ab8dd545458f71b35c26fc..66c84a953cb3d2c2122b77d212a40925ebd48cda 100644 (file)
@@ -212,7 +212,7 @@ class CodeTest(unittest.TestCase):
         CodeType = type(co)
 
         # test code constructor
-        return CodeType(co.co_argcount,
+        CodeType(co.co_argcount,
                         co.co_posonlyargcount,
                         co.co_kwonlyargcount,
                         co.co_nlocals,