@@ -64,6 +64,7 @@ def iter_opnames(ex):
6464def get_opnames (ex ):
6565 return list (iter_opnames (ex ))
6666
67+ FT_TEST_DISABLED_REVERSE_TYPE_CACHE = "FT build reverse type cache is disabled for now"
6768
6869@requires_jit_enabled
6970class TestExecutorInvalidation (unittest .TestCase ):
@@ -1182,7 +1183,7 @@ def test_modified_local_is_seen_by_optimized_code(self):
11821183 self .assertIs (type (s ), float )
11831184 self .assertEqual (s , 1024.0 )
11841185
1185- @unittest .skipIf (Py_GIL_DISABLED , "FT build only specializes on deferred methods/functions/classes" )
1186+ @unittest .skipIf (Py_GIL_DISABLED , FT_TEST_DISABLED_REVERSE_TYPE_CACHE )
11861187 def test_guard_type_version_removed (self ):
11871188 def thing (a ):
11881189 x = 0
@@ -1201,7 +1202,7 @@ class Foo:
12011202 guard_type_version_count = opnames .count ("_GUARD_TYPE_VERSION" )
12021203 self .assertEqual (guard_type_version_count , 1 )
12031204
1204- @unittest .skipIf (Py_GIL_DISABLED , "FT build only specializes on deferred methods/functions/classes" )
1205+ @unittest .skipIf (Py_GIL_DISABLED , FT_TEST_DISABLED_REVERSE_TYPE_CACHE )
12051206 def test_guard_type_version_removed_inlined (self ):
12061207 """
12071208 Verify that the guard type version if we have an inlined function
@@ -1228,7 +1229,7 @@ class Foo:
12281229 guard_type_version_count = opnames .count ("_GUARD_TYPE_VERSION" )
12291230 self .assertEqual (guard_type_version_count , 1 )
12301231
1231- @unittest .skipIf (Py_GIL_DISABLED , "FT build only specializes on deferred methods/functions" )
1232+ @unittest .skipIf (Py_GIL_DISABLED , FT_TEST_DISABLED_REVERSE_TYPE_CACHE )
12321233 def test_guard_type_version_removed_invalidation (self ):
12331234
12341235 def thing (a ):
@@ -1259,7 +1260,7 @@ class Bar:
12591260 self .assertEqual (opnames [:load_attr_top ].count ("_GUARD_TYPE_VERSION" ), 1 )
12601261 self .assertEqual (opnames [call :load_attr_bottom ].count ("_CHECK_VALIDITY" ), 2 )
12611262
1262- @unittest .skipIf (Py_GIL_DISABLED , "FT build only specializes on deferred methods/functions" )
1263+ @unittest .skipIf (Py_GIL_DISABLED , FT_TEST_DISABLED_REVERSE_TYPE_CACHE )
12631264 def test_guard_type_version_removed_escaping (self ):
12641265
12651266 def thing (a ):
@@ -2363,7 +2364,7 @@ def testfunc(n):
23632364 self .assertNotIn ("_LOAD_SMALL_INT" , uops )
23642365 self .assertIn ("_LOAD_CONST_INLINE_BORROW" , uops )
23652366
2366- @unittest .skipIf (Py_GIL_DISABLED , "FT build only specializes on deferred methods/functions" )
2367+ @unittest .skipIf (Py_GIL_DISABLED , FT_TEST_DISABLED_REVERSE_TYPE_CACHE )
23672368 def test_cached_attributes (self ):
23682369 class C :
23692370 A = 1
0 commit comments