Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Jan 9, 2025
1 parent 56bf046 commit 5bfdc5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass, field
from itertools import chain
from pathlib import Path
from shutil import copytree
from shutil import copytree, copy2
from tempfile import mkdtemp
from typing import Self
from unittest import TestCase
Expand Down Expand Up @@ -139,7 +139,7 @@ def setUp(self):
self.disk2 = mkdtemp(dir="/tmp")
temp = str(self.disk2)
self.disk = Path(self.disk2) / "disk"
copytree("tests/test_data/disk", self.disk)
copytree("tests/test_data/disk", self.disk, copy_function=copy2)

# assure a file 29 seconds ahead (because timestamp seems reset when uploading on a testing worker)
os.utime(self.disk / "folder1/dog1.jpg", (os.path.getmtime(self.disk / "folder2/dog1.jpg") - 29, ) * 2)
Expand Down

0 comments on commit 5bfdc5f

Please sign in to comment.