Skip to content

Commit e30f9da

Browse files
authored
Merge pull request #15 from pomponchik/develop
0.0.13
2 parents 2dee6f1 + 032ff15 commit e30f9da

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
44

55
[project]
66
name = 'locklib'
7-
version = '0.0.12'
7+
version = '0.0.13'
88
authors = [
99
{ name='Evgeniy Blinov', email='zheni-b@yandex.ru' },
1010
]

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ build==0.9.0
77
ruff==0.0.290
88
mypy==1.4.1
99
mutmut==2.4.4
10+
full_match==0.0.1

tests/life_lock/test_lock.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
from threading import Thread, Lock
55

66
import pytest
7+
import full_match
78

89
from locklib import SmartLock, DeadLockError
910

1011

11-
def full_match_regex(string_to_match: str) -> str:
12-
return '^' + re.escape(string_to_match) + '$'
13-
14-
1512
def test_release_unlocked():
1613
lock = SmartLock()
1714

18-
with pytest.raises(RuntimeError, match=full_match_regex('Release unlocked lock.')):
15+
with pytest.raises(RuntimeError, match=full_match('Release unlocked lock.')):
1916
lock.release()
2017

2118

0 commit comments

Comments
 (0)