Skip to content

Commit 12879c7

Browse files
chore: cleanup after session finish (#830)
At the end of the test suite file _event is deleted, but _event.lock is not. This PR fixes it
1 parent 6d79eed commit 12879c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytest_splunk_addon/splunk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,3 +1019,5 @@ def pytest_unconfigure(config):
10191019
os.remove(PYTEST_XDIST_TESTRUNUID + "_wait")
10201020
if os.path.exists(PYTEST_XDIST_TESTRUNUID + "_events"):
10211021
os.remove(PYTEST_XDIST_TESTRUNUID + "_events")
1022+
if os.path.exists(PYTEST_XDIST_TESTRUNUID + "_events.lock"):
1023+
os.remove(PYTEST_XDIST_TESTRUNUID + "_events.lock")

0 commit comments

Comments
 (0)