File tree Expand file tree Collapse file tree 3 files changed +4
-18
lines changed
Expand file tree Collapse file tree 3 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def test_is_uniquely_referenced(self):
180180 self .assertTrue (_testcapi .is_uniquely_referenced (object ()))
181181 self .assertTrue (_testcapi .is_uniquely_referenced ([]))
182182 # Immortals
183- self .assertFalse (_testcapi .is_uniquely_referenced ("spanish inquisition" ))
183+ self .assertFalse (_testcapi .is_uniquely_referenced (() ))
184184 self .assertFalse (_testcapi .is_uniquely_referenced (42 ))
185185 # CRASHES is_uniquely_referenced(NULL)
186186
Original file line number Diff line number Diff line change @@ -902,7 +902,7 @@ def loop_test():
902902 %3d RESUME_CHECK 0
903903
904904%3d BUILD_LIST 0
905- LOAD_CONST_MORTAL 2 ((1, 2, 3))
905+ LOAD_CONST 2 ((1, 2, 3))
906906 LIST_EXTEND 1
907907 LOAD_SMALL_INT 3
908908 BINARY_OP 5 (*)
@@ -918,7 +918,7 @@ def loop_test():
918918
919919%3d L2: END_FOR
920920 POP_ITER
921- LOAD_CONST_IMMORTAL 1 (None)
921+ LOAD_CONST 1 (None)
922922 RETURN_VALUE
923923""" % (loop_test .__code__ .co_firstlineno ,
924924 loop_test .__code__ .co_firstlineno + 1 ,
@@ -1304,7 +1304,7 @@ def test_load_attr_specialize(self):
13041304 load_attr_quicken = """\
13051305 0 RESUME_CHECK 0
13061306
1307- 1 LOAD_CONST_IMMORTAL 0 ('a')
1307+ 1 LOAD_CONST 0 ('a')
13081308 LOAD_ATTR_SLOT 0 (__class__)
13091309 RETURN_VALUE
13101310"""
Original file line number Diff line number Diff line change @@ -1810,20 +1810,6 @@ def compare_op_str():
18101810 self .assert_specialized (compare_op_str , "COMPARE_OP_STR" )
18111811 self .assert_no_opcode (compare_op_str , "COMPARE_OP" )
18121812
1813- @cpython_only
1814- @requires_specialization_ft
1815- def test_load_const (self ):
1816- def load_const ():
1817- def unused (): pass
1818- # Currently, the empty tuple is immortal, and the otherwise
1819- # unused nested function's code object is mortal. This test will
1820- # have to use different values if either of that changes.
1821- return ()
1822-
1823- load_const ()
1824- self .assert_specialized (load_const , "LOAD_CONST_IMMORTAL" )
1825- self .assert_specialized (load_const , "LOAD_CONST_MORTAL" )
1826- self .assert_no_opcode (load_const , "LOAD_CONST" )
18271813
18281814 @cpython_only
18291815 @requires_specialization_ft
You can’t perform that action at this time.
0 commit comments