Skip to content

Commit 0d0cb82

Browse files
committed
Move @disabling_optimizer to assert_races_do_not_crash()
1 parent 876f948 commit 0d0cb82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_opcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ def assert_specialized(self, f, opname):
515515
opnames = {instruction.opname for instruction in instructions}
516516
self.assertIn(opname, opnames)
517517

518+
@disabling_optimizer
518519
def assert_races_do_not_crash(
519520
self, opname, get_items, read, write, *, check_items=False
520521
):
@@ -942,7 +943,6 @@ def write(items):
942943
opname = "STORE_ATTR_INSTANCE_VALUE"
943944
self.assert_races_do_not_crash(opname, get_items, read, write)
944945

945-
@disabling_optimizer
946946
def test_store_attr_with_hint(self):
947947
def get_items():
948948
class C:

0 commit comments

Comments
 (0)