Commit 750b54a
gh-145678: Strengthen test to assert refcount invariant
Use sys.getrefcount() to verify that gbo->currkey's reference to
'other' is held throughout the comparison. This makes the test fail
on unpatched builds without requiring ASAN.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5daf7c4 commit 750b54a
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
759 | 761 | | |
760 | 762 | | |
761 | 763 | | |
762 | 764 | | |
763 | 765 | | |
764 | 766 | | |
| 767 | + | |
765 | 768 | | |
766 | 769 | | |
| 770 | + | |
767 | 771 | | |
| 772 | + | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
| |||
775 | 780 | | |
776 | 781 | | |
777 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
778 | 789 | | |
779 | 790 | | |
780 | 791 | | |
| |||
0 commit comments