Repository navigation
Commit f1211ba
Issue #2568 reported that `@property` attributes on test classes were
evaluated during collection (via fixture parsing), in addition to any
access during the test itself. This no longer reproduces: fixture
parsing looks descriptors up on the type and only calls getattr for
known fixture definitions, and class/module collection peeks in
__dict__ instead of doing getattr.
Pin the exact scenario from the issue - a property alongside a test
method, evaluated exactly once - so the issue can be closed.
Claude-Session: https://claude.ai/code/session_01FvmFSTZ2eh4UAiho9J2u3p
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 34b6a4e commit f1211ba
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
307 | 332 | | |
308 | 333 | | |
309 | 334 | | |
| |||
0 commit comments