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):
180
180
self .assertTrue (_testcapi .is_uniquely_referenced (object ()))
181
181
self .assertTrue (_testcapi .is_uniquely_referenced ([]))
182
182
# Immortals
183
- self .assertFalse (_testcapi .is_uniquely_referenced ("spanish inquisition" ))
183
+ self .assertFalse (_testcapi .is_uniquely_referenced (() ))
184
184
self .assertFalse (_testcapi .is_uniquely_referenced (42 ))
185
185
# CRASHES is_uniquely_referenced(NULL)
186
186
Original file line number Diff line number Diff line change @@ -902,7 +902,7 @@ def loop_test():
902
902
%3d RESUME_CHECK 0
903
903
904
904
%3d BUILD_LIST 0
905
- LOAD_CONST_MORTAL 2 ((1, 2, 3))
905
+ LOAD_CONST 2 ((1, 2, 3))
906
906
LIST_EXTEND 1
907
907
LOAD_SMALL_INT 3
908
908
BINARY_OP 5 (*)
@@ -918,7 +918,7 @@ def loop_test():
918
918
919
919
%3d L2: END_FOR
920
920
POP_ITER
921
- LOAD_CONST_IMMORTAL 1 (None)
921
+ LOAD_CONST 1 (None)
922
922
RETURN_VALUE
923
923
""" % (loop_test .__code__ .co_firstlineno ,
924
924
loop_test .__code__ .co_firstlineno + 1 ,
@@ -1304,7 +1304,7 @@ def test_load_attr_specialize(self):
1304
1304
load_attr_quicken = """\
1305
1305
0 RESUME_CHECK 0
1306
1306
1307
- 1 LOAD_CONST_IMMORTAL 0 ('a')
1307
+ 1 LOAD_CONST 0 ('a')
1308
1308
LOAD_ATTR_SLOT 0 (__class__)
1309
1309
RETURN_VALUE
1310
1310
"""
Original file line number Diff line number Diff line change @@ -1810,20 +1810,6 @@ def compare_op_str():
1810
1810
self .assert_specialized (compare_op_str , "COMPARE_OP_STR" )
1811
1811
self .assert_no_opcode (compare_op_str , "COMPARE_OP" )
1812
1812
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" )
1827
1813
1828
1814
@cpython_only
1829
1815
@requires_specialization_ft
You can’t perform that action at this time.
0 commit comments