Skip to content

back to OpenHands summary

OpenHands: requests

Failed to run pytests for test tests

/testbed/.venv/lib/python3.12/site-packages/httpbin/helpers.py:32: SyntaxWarning: invalid escape sequence '\_'
  ASCII_ART = """
/testbed/.venv/lib/python3.12/site-packages/httpbin/helpers.py:77: SyntaxWarning: invalid escape sequence '\ '
  ANGRY_ASCII ="""
/testbed/.venv/lib/python3.12/site-packages/httpbin/helpers.py:444: SyntaxWarning: invalid escape sequence '\s'
  match = re.search('\s*(W/)?\"?([^"]*)\"?\s*', part)
ImportError while loading conftest '/testbed/tests/conftest.py'.
tests/conftest.py:12: in <module>
    from requests.compat import urljoin
src/requests/__init__.py:164: in <module>
    from .api import delete, get, head, options, patch, post, put, request
src/requests/api.py:10: in <module>
    from . import sessions
src/requests/sessions.py:14: in <module>
    from .adapters import HTTPAdapter
E     File "/testbed/src/requests/adapters.py", line 34
E       if typing.TYPE_CHECKING:
E       ^^
E   IndentationError: expected an indented block after 'except' statement on line 33

Patch diff