From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 23 Aug 2021 19:20:29 +0000 (-0700) Subject: bpo-44980: fix test_constructor to return None value (GH-27898) (GH-27914) X-Git-Tag: v3.9.7~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de49eacee85dbd56bfa261200604766ca6042d66;p=thirdparty%2FPython%2Fcpython.git bpo-44980: fix test_constructor to return None value (GH-27898) (GH-27914) (cherry picked from commit 27b761a11a14521617a01257eb3767150bec3a74) Co-authored-by: andrei kulakov --- diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index ac3dde745603..7d77d7a7bec8 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -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,