diff options
author | alevitskii <[email protected]> | 2025-09-02 06:57:05 +0300 |
---|---|---|
committer | alevitskii <[email protected]> | 2025-09-02 07:19:27 +0300 |
commit | 7e399723cf6d967e20c8f9d2ee975426636242c5 (patch) | |
tree | abd5283daba11c07afc8fc16f02aec2c19e2272a /contrib/python/portalocker/py3/tests/test_semaphore.py | |
parent | 14e9c865541d5abe545cb496c0143e4905b00c78 (diff) |
Drop LINTER param from styling macroses and cleanup deps
Drop LINTER param from styling macroses
commit_hash:00dd2e2ee103e509cff38f520d4779974abe39a7
Diffstat (limited to 'contrib/python/portalocker/py3/tests/test_semaphore.py')
-rw-r--r-- | contrib/python/portalocker/py3/tests/test_semaphore.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/contrib/python/portalocker/py3/tests/test_semaphore.py b/contrib/python/portalocker/py3/tests/test_semaphore.py deleted file mode 100644 index b0c57aa23c7..00000000000 --- a/contrib/python/portalocker/py3/tests/test_semaphore.py +++ /dev/null @@ -1,22 +0,0 @@ -import random -import pytest -import portalocker -from portalocker import utils - - [email protected]('timeout', [None, 0, 0.001]) [email protected]('check_interval', [None, 0, 0.0005]) -def test_bounded_semaphore(timeout, check_interval, monkeypatch): - n = 2 - name = random.random() - monkeypatch.setattr(utils, 'DEFAULT_TIMEOUT', 0.0001) - monkeypatch.setattr(utils, 'DEFAULT_CHECK_INTERVAL', 0.0005) - - semaphore_a = portalocker.BoundedSemaphore(n, name=name, timeout=timeout) - semaphore_b = portalocker.BoundedSemaphore(n, name=name, timeout=timeout) - semaphore_c = portalocker.BoundedSemaphore(n, name=name, timeout=timeout) - - semaphore_a.acquire(timeout=timeout) - semaphore_b.acquire() - with pytest.raises(portalocker.AlreadyLocked): - semaphore_c.acquire(check_interval=check_interval, timeout=timeout) |