From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 23 Aug 2021 19:21:06 +0000 (-0700) Subject: bpo-44980: fix test_constructor to return None value (GH-27898) X-Git-Tag: v3.10.0rc2~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10955353ce25a52741e8f72fdbb6f4b150ee4dc7;p=thirdparty%2FPython%2Fcpython.git bpo-44980: fix test_constructor to return None value (GH-27898) (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 6aaf04ca6dde..74cd0458a510 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,