Repository navigation
Commit 1aa005b
Make test_shot_view_ref_count refcount check work on Python 3.14
Summary:
On Python 3.14, `sys.getrefcount` on a local variable returns one less than on 3.12 (the interpreter borrows local references for the call), so the absolute `== 2` check fails. Comparing against a plain local keeps the "nothing else holds the reconstruction" check on both versions.
___
Differential Revision: D122956965
fbshipit-source-id: 399b777013c49a93a8fd5735779a70e4b06eac711 parent c4985ce commit 1aa005b
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | | - | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
0 commit comments