Skip to content

Commit 4d5905f

Browse files
committed
Merge branch 'release/2.10.1'
2 parents 06d58c4 + c2c433d commit 4d5905f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

portalocker/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__package_name__ = 'portalocker'
22
__author__ = 'Rick van Hattem'
33
__email__ = 'wolph@wol.ph'
4-
__version__ = '2.10.0'
4+
__version__ = '2.10.1'
55
__description__ = '''Wraps the portalocker recipe for easy usage'''
66
__url__ = 'https://github.com/WoLpH/portalocker'

portalocker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#: Current author's email address
2121
__email__ = __about__.__email__
2222
#: Version number
23-
__version__ = '2.10.0'
23+
__version__ = '2.10.1'
2424
#: Package description for Pypi
2525
__description__ = __about__.__description__
2626
#: Package homepage

portalocker/portalocker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def unlock(file_: typing.IO):
103103
LOCKER = fcntl.flock
104104

105105
def lock(file_: typing.Union[typing.IO, int], flags: LockFlags):
106-
assert LOCKER is not None, 'We need a locing function in `LOCKER` '
106+
assert LOCKER is not None, 'We need a locking function in `LOCKER` '
107107
# Locking with NON_BLOCKING without EXCLUSIVE or SHARED enabled
108108
# results in an error
109109
if (flags & LockFlags.NON_BLOCKING) and not flags & (
@@ -147,7 +147,7 @@ def lock(file_: typing.Union[typing.IO, int], flags: LockFlags):
147147
) from exc_value
148148

149149
def unlock(file_: typing.IO):
150-
assert LOCKER is not None, 'We need a locing function in `LOCKER` '
150+
assert LOCKER is not None, 'We need a locking function in `LOCKER` '
151151
LOCKER(file_.fileno(), LockFlags.UNBLOCK)
152152

153153
else: # pragma: no cover

portalocker_tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ def test_exclusive_processes(tmpfile: str, fail_when_locked: bool, locker):
354354
result_b = pool.apply_async(lock, [tmpfile, fail_when_locked, flags])
355355

356356
try:
357-
a = result_a.get(timeout=1.0) # Wait for 'a' with timeout
357+
a = result_a.get(timeout=1.1) # Wait for 'a' with timeout
358358
except multiprocessing.TimeoutError:
359359
a = None
360360

361361
try:
362362
# Lower timeout since we already waited with `a`
363-
b = result_b.get(timeout=0.1) # Wait for 'b' with timeout
363+
b = result_b.get(timeout=0.2) # Wait for 'b' with timeout
364364
except multiprocessing.TimeoutError:
365365
b = None
366366

0 commit comments

Comments
 (0)