@@ -775,7 +775,6 @@ def check_same_constant(const):
775775            self .assertEqual (repr (f1 ()), repr (const ))
776776
777777        check_same_constant (None )
778-         check_same_constant (0 )
779778        check_same_constant (0.0 )
780779        check_same_constant (b'abc' )
781780        check_same_constant ('abc' )
@@ -853,9 +852,9 @@ def test_remove_unused_consts_extended_args(self):
853852        eval (compile (code , "file.py" , "exec" ), g )
854853        exec (code , g )
855854        f  =  g ['f' ]
856-         expected  =  tuple ([None , '' ,  1 ] +  [f't{ i }   for  i  in  range (N )])
855+         expected  =  tuple ([None , '' ] +  [f't{ i }   for  i  in  range (N )])
857856        self .assertEqual (f .__code__ .co_consts , expected )
858-         expected  =  "" .join (expected [3 :])
857+         expected  =  "" .join (expected [2 :])
859858        self .assertEqual (expected , f ())
860859
861860    # Stripping unused constants is not a strict requirement for the 
@@ -884,7 +883,7 @@ def unused_code_at_end():
884883        # RETURN_VALUE opcode.  This does not always crash an interpreter. 
885884        # When you build with the clang memory sanitizer it reliably aborts. 
886885        self .assertEqual (
887-             'RETURN_CONST ' ,
886+             'RETURN_VALUE ' ,
888887            list (dis .get_instructions (unused_code_at_end ))[- 1 ].opname )
889888
890889    @support .cpython_only  
@@ -982,7 +981,6 @@ def check_different_constants(const1, const2):
982981            self .assertEqual (repr (f1 ()), repr (const1 ))
983982            self .assertEqual (repr (f2 ()), repr (const2 ))
984983
985-         check_different_constants (0 , 0.0 )
986984        check_different_constants (+ 0.0 , - 0.0 )
987985        check_different_constants ((0 ,), (0.0 ,))
988986        check_different_constants ('a' , b'a' )
0 commit comments