........................................................................ [ 10%]
........................................................................ [ 20%]
........................................................................ [ 30%]
........................................................................ [ 40%]
........................................................................ [ 51%]
........................................................................ [ 61%]
............................................FFF......................... [ 71%]
........................................................................ [ 81%]
........................................................................ [ 91%]
.........................................................                [100%]
=================================== FAILURES ===================================
_____________ test_source_policy_is_digest_verified_before_parsing _____________

    def test_source_policy_is_digest_verified_before_parsing() -> None:
        raw = load_policy_bytes()
>       assert raw == POLICY_PATH.read_bytes()
                      ^^^^^^^^^^^^^^^^^^^^^^^^

../../task26-strict-successor-1786976146/src-p/tests/test_diagnostic_policy_package.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../miniconda3/lib/python3.12/pathlib.py:1019: in read_bytes
    with self.open(mode='rb') as f:
         ^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/home/cube/.cache/task26-sex-basis-wheel-tests-st_01a01309/profile-tests/checkin_cli/policies/diagnostic-promotion-policy.json')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed to by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return io.open(self, mode, buffering, encoding, errors, newline)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       FileNotFoundError: [Errno 2] No such file or directory: '/home/cube/.cache/task26-sex-basis-wheel-tests-st_01a01309/profile-tests/checkin_cli/policies/diagnostic-promotion-policy.json'

../../../miniconda3/lib/python3.12/pathlib.py:1013: FileNotFoundError
________ test_wheel_contains_exact_policy_and_installed_resource_bytes _________

tmp_path = PosixPath('/tmp/pytest-of-cube/pytest-8690/test_wheel_contains_exact_poli0')

    def test_wheel_contains_exact_policy_and_installed_resource_bytes(tmp_path: Path) -> None:
>       raw = POLICY_PATH.read_bytes()
              ^^^^^^^^^^^^^^^^^^^^^^^^

../../task26-strict-successor-1786976146/src-p/tests/test_diagnostic_policy_package.py:178: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../miniconda3/lib/python3.12/pathlib.py:1019: in read_bytes
    with self.open(mode='rb') as f:
         ^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/home/cube/.cache/task26-sex-basis-wheel-tests-st_01a01309/profile-tests/checkin_cli/policies/diagnostic-promotion-policy.json')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed to by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return io.open(self, mode, buffering, encoding, errors, newline)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       FileNotFoundError: [Errno 2] No such file or directory: '/home/cube/.cache/task26-sex-basis-wheel-tests-st_01a01309/profile-tests/checkin_cli/policies/diagnostic-promotion-policy.json'

../../../miniconda3/lib/python3.12/pathlib.py:1013: FileNotFoundError
_____ test_installed_resource_loader_rejects_missing_and_mismatched_bytes ______

tmp_path = PosixPath('/tmp/pytest-of-cube/pytest-8690/test_installed_resource_loader0')

    def test_installed_resource_loader_rejects_missing_and_mismatched_bytes(tmp_path: Path) -> None:
        wheel = _build_wheel(tmp_path)
        installed = tmp_path / "installed"
        _extract_wheel(wheel, installed)
    
        missing = tmp_path / "missing"
        shutil.copytree(installed, missing)
>       (missing / POLICY_MEMBER).unlink()

../../task26-strict-successor-1786976146/src-p/tests/test_diagnostic_policy_package.py:201: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-cube/pytest-8690/test_installed_resource_loader0/missing/checkin_cli/policies/diagnostic-promotion-policy.json')
missing_ok = False

    def unlink(self, missing_ok=False):
        """
        Remove this file or link.
        If the path is a directory, use rmdir() instead.
        """
        try:
>           os.unlink(self)
E           FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-cube/pytest-8690/test_installed_resource_loader0/missing/checkin_cli/policies/diagnostic-promotion-policy.json'

../../../miniconda3/lib/python3.12/pathlib.py:1342: FileNotFoundError
----------------------------- Captured stdout call -----------------------------
Processing ./.
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: physique-checkin-cli
  Building wheel for physique-checkin-cli (pyproject.toml): started
  Building wheel for physique-checkin-cli (pyproject.toml): finished with status 'done'
  Created wheel for physique-checkin-cli: filename=physique_checkin_cli-0.1.0-py3-none-any.whl size=1194 sha256=87fc5ac4352005852407e4d61e15d28f5982ccc1b0f91bd6e583d6413d4e0d4c
  Stored in directory: /tmp/pip-ephem-wheel-cache-96rh3rhh/wheels/5b/0e/28/c6f7ab51dcc51e00ad8245801562e0874aaafd28ade5fee925
Successfully built physique-checkin-cli
=========================== short test summary info ============================
FAILED tests/test_diagnostic_policy_package.py::test_source_policy_is_digest_verified_before_parsing
FAILED tests/test_diagnostic_policy_package.py::test_wheel_contains_exact_policy_and_installed_resource_bytes
FAILED tests/test_diagnostic_policy_package.py::test_installed_resource_loader_rejects_missing_and_mismatched_bytes
3 failed, 702 passed in 49.38s
