← mined_httpx_oracle2

httpx_3651

resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · encode/httpx

Task input

(not found in data/tasks.jsonl)

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Patch

--- a/httpx/_exceptions.py
+++ b/httpx/_exceptions.py
@@ -331,9 +331,7 @@ class StreamClosed(StreamError):
     """
 
     def __init__(self) -> None:
-        message = (
-            "Attempted to read or stream content, but the stream has " "been closed."
-        )
+        message = "Attempted to read or stream content, but the stream has been closed."
         super().__init__(message)
 
 
--- a/httpx/_urls.py
+++ b/httpx/_urls.py
@@ -379,7 +379,7 @@ class URL:
 
         if ":" in userinfo:
             # Mask any password component.
-            userinfo = f'{userinfo.split(":")[0]}:[secure]'
+            userinfo = f"{userinfo.split(':')[0]}:[secure]"
 
         authority = "".join(
             [
--- a/requirements.txt
+++ b/requirements.txt
@@ -22,7 +22,7 @@ coverage[toml]==7.6.1
 cryptography==44.0.1
 mypy==1.13.0
 pytest==8.3.4
-ruff==0.8.1
+ruff==0.12.11
 trio==0.27.0
 trio-typing==0.10.0
 trustme==1.2.0

Test output

show
_content.py:65
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:65: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:93
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:93: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:129
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:129: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:165
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:165: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:183
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:183: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:201
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:201: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:219
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:219: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:237
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:237: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:255
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:255: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:298
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:298: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:345
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:345: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:367
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:367: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:418
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:418: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:432
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:432: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:446
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:446: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py:465
  /private/tmp/swe_work/mined_httpx_oracle2/httpx_3651/b/workspace/tests/test_content.py:465: PytestUnknownMarkWarning: Unknown pytest.mark.anyio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.anyio

tests/test_content.py: 19 warnings
  /Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/httpx/lib/python3.13/site-packages/_pytest/python.py:148: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped.
  You need to install a suitable plugin for your async framework, for example:
    - anyio
    - pytest-asyncio
    - pytest-tornasync
    - pytest-trio
    - pytest-twisted
    warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
5 passed, 19 skipped, 38 warnings in 0.05s