We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c198a7a + c90fdc6 commit e6ed28fCopy full SHA for e6ed28f
src/_pytest/_code/code.py
@@ -422,21 +422,12 @@ def recursionindex(self) -> Optional[int]:
422
f = entry.frame
423
loc = f.f_locals
424
for otherloc in values:
425
- if f.eval(
426
- co_equal,
427
- __recursioncache_locals_1=loc,
428
- __recursioncache_locals_2=otherloc,
429
- ):
+ if otherloc == loc:
430
return i
431
values.append(entry.frame.f_locals)
432
return None
433
434
435
-co_equal = compile(
436
- "__recursioncache_locals_1 == __recursioncache_locals_2", "?", "eval"
437
-)
438
-
439
440
E = TypeVar("E", bound=BaseException, covariant=True)
441
442
0 commit comments