Skip to content

Commit 3775b03

Browse files
committed
Fix test failure due to not deleting exc_info
1 parent 8acba23 commit 3775b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_filelock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ def test_singleton_locks_must_be_initialized_with_the_same_args(lock_type: type[
756756
with pytest.raises(ValueError, match=general_msg) as exc_info:
757757
lock_type(str(lock_path), is_singleton=True, **altered_args)
758758
exc_info.match(arg_name) # ensure specific non-matching argument is included in exception text
759-
del lock
759+
del lock, exc_info
760760

761761

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

0 commit comments

Comments
 (0)