Skip to content

Commit

Permalink
fixing Windows PermissionError occuring on file deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbmrz committed Mar 15, 2024
1 parent 1009354 commit 5ee6649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unittests/test_core/test_archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import random
import shutil
import tarfile
import time

import cv2
import lightning.pytorch as pl
Expand Down Expand Up @@ -112,6 +113,7 @@ def classification_dataset_generator():
def teardown_class(cls):
"""Remove all created files."""
LuxonisDataset(cls.ldf_name).delete_dataset()
time.sleep(1) # wait for all files to be released by other processes
shutil.rmtree(cls.tmp_path)

def test_archive_creation(self):
Expand Down

0 comments on commit 5ee6649

Please sign in to comment.