{"record":{"id":"655ed0290674e471","repo":"pola-rs/polars","slug":"objects-are-different-detail-left-left","errorCode":null,"errorMessage":"{objects} are different ({detail})\n[left]:  {left}\n[right]: {right}","messagePattern":"(.+?) are different \\((.+?)\\)\n\\[left\\]:  (.+?)\n\\[right\\]: (.+?)","errorType":"exception","errorClass":"AssertionError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/testing/asserts/utils.py","lineNumber":12,"sourceCode":"from __future__ import annotations\n\nfrom typing import Any, NoReturn\n\n\ndef raise_assertion_error(\n    objects: str, detail: str, left: Any, right: Any, *, cause: Exception | None = None\n) -> NoReturn:\n    \"\"\"Raise a detailed assertion error.\"\"\"\n    __tracebackhide__ = True\n    msg = f\"{objects} are different ({detail})\\n[left]:  {left}\\n[right]: {right}\"\n    raise AssertionError(msg) from cause\n","sourceCodeStart":1,"sourceCodeEnd":13,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/py-polars/src/polars/testing/asserts/utils.py#L1-L13","documentation":"Generic assertion-message builder (raise_assertion_error) used by polars.testing assert frame/series equality helpers: it formats a comparison failure between the left (actual) and right (expected) objects, with `detail` naming the specific mismatch (values, dtype, shape, etc.). Seeing it means an assert_*_equal test found a concrete difference, not a crash.","triggerScenarios":"Thrown at py-polars/src/polars/testing/asserts/utils.py:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the reported left/right values and detail; fix the data or the assertion so the compared objects match as expected."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}