========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= test session starts ==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
platform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.10.12', 'Platform': 'Linux-6.8.0-1025-gke-x86_64-with-glibc2.35', 'Packages': {'pytest': '9.0.3', 'pluggy': '1.6.0'}, 'Plugins': {'anyio': '4.13.0', 'metadata': '3.1.1', 'json-report': '1.5.0', 'cov': '7.1.0'}}
rootdir: /workspace/portalocker
configfile: pytest.ini
plugins: anyio-4.13.0, metadata-3.1.1, json-report-1.5.0, cov-7.1.0
collected 29 items

portalocker_tests/tests.py::test_exceptions PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               [  3%]
portalocker_tests/tests.py::test_utils_base PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               [  6%]
portalocker_tests/tests.py::test_with_timeout PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             [ 10%]
portalocker_tests/tests.py::test_without_timeout PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ 13%]
portalocker_tests/tests.py::test_without_fail PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             [ 17%]
portalocker_tests/tests.py::test_simple PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   [ 20%]
portalocker_tests/tests.py::test_truncate PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 [ 24%]
portalocker_tests/tests.py::test_class PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ 27%]
portalocker_tests/tests.py::test_acquire_release PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ 31%]
portalocker_tests/tests.py::test_rlock_acquire_release_count PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ 34%]
portalocker_tests/tests.py::test_rlock_acquire_release PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ 37%]
portalocker_tests/tests.py::test_release_unacquired PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       [ 41%]
portalocker_tests/tests.py::test_exlusive PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 [ 44%]
portalocker_tests/tests.py::test_shared PASSED                                                                                                                                                                                                                                                                                                                                                                                                                              <response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>                                                                                                                                                                                         [ 68%]
portalocker_tests/tests.py::test_exclusive_processes[flock-True] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ 72%]
portalocker_tests/tests.py::test_exclusive_processes[flock-False] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         [ 75%]
portalocker_tests/tests.py::test_exclusive_processes[lockf-True] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ 79%]
portalocker_tests/tests.py::test_exclusive_processes[lockf-False] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         [ 82%]
portalocker_tests/tests.py::test_lock_fileno[flock] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       [ 86%]
portalocker_tests/tests.py::test_lock_fileno[lockf] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       [ 89%]
portalocker_tests/tests.py::test_locker_mechanism[flock] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [ 93%]
portalocker_tests/tests.py::test_locker_mechanism[lockf] PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [ 96%]
portalocker_tests/tests.py::test_exception PASSED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [100%]
ERROR: Coverage failure: total of 52 is less than fail-under=100


=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== warnings summary ===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
../../home/openhands/.local/lib/python3.10/site-packages/_pytest/config/__init__.py:1434
  /home/openhands/.local/lib/python3.10/site-packages/_pytest/config/__init__.py:1434: PytestConfigWarning: Unknown config option: timeout

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

portalocker_tests/tests.py::test_locker_mechanism[flock]
portalocker_tests/tests.py::test_locker_mechanism[lockf]
  /workspace/portalocker/portalocker/utils.py:157: UserWarning: timeout has no effect in blocking mode
    warnings.warn('timeout has no effect in blocking mode', stacklevel=1)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================ tests coverage ============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ coverage: platform linux, python 3.10.12-final-0 ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Name                         Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------------------
portalocker/__about__.py         6      0      0      0   100%
portalocker/__init__.py         18      0      0      0   100%
portalocker/__main__.py         69     69     20      0     0%   1-117
portalocker/constants.py        20      6      4      2    67%   20-24, 32
portalocker/exceptions.py       12      0      0      0   100%
portalocker/portalocker.py      66     39     32      9    39%   11-16, 22, 27-45, 52, 59-61, 66-74, 78, 81-84
portalocker/utils.py           189     59     42      2    68%   46, 74-88, 96-98, 101, 108, 185-186, 189-190, 207, 223, 255-256, 276-283, 286, 292-294, 297-317, 320-322, 350-352
------------------------------------------------------------------------
TOTAL                          380    173     98     13    52%
Coverage HTML written to dir htmlcov
FAIL Required test coverage of 100.0% not reached. Total coverage: 51.88%
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== 29 passed, 3 warnings in 2.98s ====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
[The command completed with exit code 1.]
[Current working directory: /workspace/portalocker]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 1]