failed WRONG_FIX UNSUBMITTED wrong_fix_unsubmitted(None) · None tool calls · 0 s · encode/httpx
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- a/httpx/_content.py
+++ b/httpx/_content.py
@@ -174,7 +174,9 @@ def encode_html(html: str) -> tuple[dict[str, str], ByteStream]:
def encode_json(json: Any) -> tuple[dict[str, str], ByteStream]:
- body = json_dumps(json).encode("utf-8")
+ body = json_dumps(
+ json, ensure_ascii=False, separators=(",", ":"), allow_nan=False
+ ).encode("utf-8")
content_length = str(len(body))
content_type = "application/json"
headers = {"Content-Length": content_length, "Content-Type": content_type}
ImportError while loading conftest '/private/tmp/swe_work/mined_httpx_oracle2/httpx_3367/b/workspace/tests/conftest.py'.
tests/conftest.py:20: in <module>
import httpx
httpx/__init__.py:2: in <module>
from ._api import *
httpx/_api.py:7: in <module>
from ._client import Client
httpx/_client.py:32: in <module>
from ._transports.base import AsyncBaseTransport, BaseTransport
httpx/_transports/__init__.py:3: in <module>
from .default import *
httpx/_transports/default.py:34: in <module>
import httpcore
E ModuleNotFoundError: No module named 'httpcore'