]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44980: fix test_constructor to return None value (GH-27898) (GH-27914)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Aug 2021 19:20:29 +0000 (12:20 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Aug 2021 19:20:29 +0000 (21:20 +0200)
(cherry picked from commit 27b761a11a14521617a01257eb3767150bec3a74)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Lib/test/test_code.py

index ac3dde745603db733501fcc1ad27e0b44e28d427..7d77d7a7bec86cb911555067142e6504970c72e8 100644 (file)
@@ -213,7 +213,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,