============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.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 40 items / 2 skipped

portalocker_tests/temporary_file_lock.py .                               [  2%]
portalocker_tests/test_combined.py .                                     [  5%]
portalocker_tests/test_semaphore.py .........                            [ 27%]
portalocker_tests/tests.py .............................
ERROR: Coverage failure: total of 79 is less than fail-under=100
                                                                         [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
--------------------------------- JSON report ----------------------------------
report saved to: report.json
================================ 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         73      0     22      0   100%
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           193     26     42      3    86%   46, 74-88, 101, 108, 185-186, 189-190, 207, 223, 288, 325-327, 355-357
------------------------------------------------------------------------
TOTAL                          388     71    100     14    79%
Coverage HTML written to dir htmlcov
FAIL Required test coverage of 100.0% not reached. Total coverage: 79.30%
================== 40 passed, 2 skipped, 3 warnings in 10.48s ==================