(self)
| 547 | ) |
| 548 | |
| 549 | def test_set_attr_no_error(self) -> None: |
| 550 | op = SetAttr(self.r, "y", self.m, 1) |
| 551 | op.error_kind = ERR_NEVER |
| 552 | self.assert_emit( |
| 553 | op, |
| 554 | """if (((mod___AObject *)cpy_r_r)->_y != CPY_INT_TAG) { |
| 555 | CPyTagged_DECREF(((mod___AObject *)cpy_r_r)->_y); |
| 556 | } |
| 557 | ((mod___AObject *)cpy_r_r)->_y = cpy_r_m; |
| 558 | """, |
| 559 | ) |
| 560 | |
| 561 | def test_set_attr_non_refcounted_no_error(self) -> None: |
| 562 | op = SetAttr(self.r, "x", self.b, 1) |
nothing calls this directly
no test coverage detected