Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 5, 2023
1 parent 2675990 commit 33c0726
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_filelock.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def test_thrashing_with_threadpool_passing_lock_to_threads(tmp_path: Path, lock_

def mess_with_file(lock, txt_file):
with lock:
for _ in range (3):
for _ in range(3):
u = str(uuid4())
txt_file.write_text(u)
assert txt_file.read_text() == u
Expand All @@ -548,7 +548,7 @@ def test_thrashing_with_threadpool_global_lock(tmp_path: Path, lock_type: BaseFi

def mess_with_file(txt_file):
with lock:
for _ in range (3):
for _ in range(3):
u = str(uuid4())
txt_file.write_text(u)
assert txt_file.read_text() == u
Expand All @@ -570,7 +570,7 @@ def test_thrashing_with_threadpool_lock_recreated_in_each_thread(tmp_path: Path,

def mess_with_file(lock_type, lock_file, txt_file):
with lock_type(lock_file):
for _ in range (3):
for _ in range(3):
u = str(uuid4())
txt_file.write_text(u)
assert txt_file.read_text() == u
Expand Down

0 comments on commit 33c0726

Please sign in to comment.