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

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

index 6aaf04ca6dde5e83bbaee220f42987efa4169627..74cd0458a51083a91c59f40f707d125f4102d797 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,