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

(cherry picked from commit 27b761a11a14521617a01257eb3767150bec3a74)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py
index 6aaf04c..74cd045 100644
--- a/Lib/test/test_code.py
+++ b/Lib/test/test_code.py
@@ -213,7 +213,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,