[Python-checkins] bpo-44980: fix test_constructor to return None value (GH-27898)

ambv webhook-mailer at python.org
Mon Aug 23 14:50:55 EDT 2021


https://github.com/python/cpython/commit/27b761a11a14521617a01257eb3767150bec3a74
commit: 27b761a11a14521617a01257eb3767150bec3a74
branch: main
author: andrei kulakov <andrei.avk at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-08-23T20:50:46+02:00
summary:

bpo-44980: fix test_constructor to return None value (GH-27898)

files:
M Lib/test/test_code.py

diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py
index 9d6b465115ca2..66c84a953cb3d 100644
--- a/Lib/test/test_code.py
+++ b/Lib/test/test_code.py
@@ -212,7 +212,7 @@ def func(): pass
         CodeType = type(co)
 
         # test code constructor
-        return CodeType(co.co_argcount,
+        CodeType(co.co_argcount,
                         co.co_posonlyargcount,
                         co.co_kwonlyargcount,
                         co.co_nlocals,



More information about the Python-checkins mailing list