Skip to content

Commit

Permalink
Merge pull request #1 from nicoddemus/patch-1
Browse files Browse the repository at this point in the history
Compatibility with upcoming pytest 5.4
  • Loading branch information
griddic committed Feb 26, 2020
2 parents 84d8aca + 290c074 commit 4a30114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pytest/freeze fixtures/conftest.py
Expand Up @@ -29,7 +29,7 @@ def pytest_fixture_setup(fixturedef, request):
def pytest_fixture_post_finalizer(fixturedef, request):
if not request.node.nodeid:
return
if not hasattr(fixturedef, 'cached_result'):
if getattr(fixturedef, 'cached_result', None) is None:
return
file_path = construct_file_path(fixturedef, request)
with open(file_path, 'wb') as outt:
Expand Down

0 comments on commit 4a30114

Please sign in to comment.