Skip to content

Commit

Permalink
Fix test failure due to not deleting exc_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbb committed Jun 12, 2024
1 parent 8acba23 commit 3775b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_filelock.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def test_singleton_locks_must_be_initialized_with_the_same_args(lock_type: type[
with pytest.raises(ValueError, match=general_msg) as exc_info:
lock_type(str(lock_path), is_singleton=True, **altered_args)
exc_info.match(arg_name) # ensure specific non-matching argument is included in exception text
del lock
del lock, exc_info


@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="del() does not trigger GC in PyPy")
Expand Down

0 comments on commit 3775b03

Please sign in to comment.