From 5e8ec4224b0338ad87b48379e40b5beec9166eb0 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 14 Jul 2022 11:41:01 -0400 Subject: [PATCH] Make work without default encoding --- Lib/test/test_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index c3ce933d4f655d..952de7c7819977 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -166,9 +166,9 @@ def dump(co): """Print out a text representation of a code object.""" for attr in ["name", "argcount", "posonlyargcount", "kwonlyargcount", "names", "varnames", - "cellvars", "freevars", "nlocals", "flags", - "lnotab"]: + "cellvars", "freevars", "nlocals", "flags"]: print("%s: %s" % (attr, getattr(co, "co_" + attr))) + print("lnotab:", repr(co.co_lnotab)) print("consts:", tuple(consts(co.co_consts))) # Needed for test_closure_injection below