Skip to content

Commit 94d8803

Browse files
authored
Update fixtures.py
Revert due to pytest-dev#6962.
1 parent 4e7a69d commit 94d8803

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/fixtures.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1053,10 +1053,8 @@ def execute(self, request: SubRequest) -> _FixtureValue:
10531053

10541054
my_cache_key = self.cache_key(request)
10551055
if self.cached_result is not None:
1056-
# note: comparison with `==` can fail (or be expensive) for e.g.
1057-
# numpy arrays (#6497).
10581056
cache_key = self.cached_result[1]
1059-
if my_cache_key is cache_key:
1057+
if my_cache_key == cache_key:
10601058
if self.cached_result[2] is not None:
10611059
_, val, tb = self.cached_result[2]
10621060
raise val.with_traceback(tb)

0 commit comments

Comments
 (0)