============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.2, pluggy-1.6.0
rootdir: /workspace/imapclient
configfile: pyproject.toml
plugins: cov-7.0.0, metadata-3.1.1, anyio-4.12.1, json-report-1.5.0
collected 0 items / 18 errors

==================================== ERRORS ====================================
__________________ ERROR collecting tests/imapclient_test.py ___________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/imapclient_test.py:3: in <module>
    from imapclient.testable_imapclient import TestableIMAPClient as IMAPClient
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_____________________ ERROR collecting tests/test_auth.py ______________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_auth.py:5: in <module>
    from imapclient.exceptions import LoginError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_________________ ERROR collecting tests/test_datetime_util.py _________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_datetime_util.py:9: in <module>
    from imapclient.datetime_util import (
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
____________________ ERROR collecting tests/test_enable.py _____________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_enable.py:7: in <module>
    from imapclient.exceptions import IllegalStateError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_________________ ERROR collecting tests/test_fixed_offset.py __________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_fixed_offset.py:9: in <module>
    from imapclient.fixed_offset import FixedOffset
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_________________ ERROR collecting tests/test_folder_status.py _________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_folder_status.py:7: in <module>
    from .imapclient_test import IMAPClientTest
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/imapclient_test.py:3: in <module>
    from imapclient.testable_imapclient import TestableIMAPClient as IMAPClient
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
___________________ ERROR collecting tests/test_imap_utf7.py ___________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_imap_utf7.py:7: in <module>
    from imapclient.imap_utf7 import decode, encode
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
__________________ ERROR collecting tests/test_imapclient.py ___________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_imapclient.py:15: in <module>
    from imapclient.exceptions import CapabilityError, IMAPClientError, ProtocolError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_____________________ ERROR collecting tests/test_init.py ______________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_init.py:8: in <module>
    from imapclient.imapclient import IMAPClient, SocketTimeout
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
________________ ERROR collecting tests/test_response_lexer.py _________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_response_lexer.py:7: in <module>
    from imapclient.response_lexer import TokenSource
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
________________ ERROR collecting tests/test_response_parser.py ________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_response_parser.py:13: in <module>
    from imapclient.datetime_util import datetime_to_native
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
____________________ ERROR collecting tests/test_search.py _____________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_search.py:9: in <module>
    from imapclient.exceptions import InvalidCriteriaError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_____________________ ERROR collecting tests/test_sort.py ______________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_sort.py:7: in <module>
    from imapclient.exceptions import CapabilityError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
___________________ ERROR collecting tests/test_starttls.py ____________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_starttls.py:7: in <module>
    from imapclient.exceptions import IMAPClientError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
_____________________ ERROR collecting tests/test_store.py _____________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_store.py:8: in <module>
    from imapclient.imapclient import ANSWERED, DELETED, DRAFT, FLAGGED, RECENT, SEEN
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
____________________ ERROR collecting tests/test_thread.py _____________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_thread.py:7: in <module>
    from imapclient.exceptions import CapabilityError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
________________ ERROR collecting tests/test_util_functions.py _________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_util_functions.py:7: in <module>
    from imapclient.exceptions import InvalidCriteriaError, ProtocolError
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
____________________ ERROR collecting tests/test_version.py ____________________
/home/openhands/.local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/home/openhands/.local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/home/openhands/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
tests/test_version.py:7: in <module>
    from imapclient.version import _imapclient_version_string
imapclient/__init__.py:8: in <module>
    from .imapclient import *  # noqa: F401,F403
E     File "/workspace/imapclient/imapclient/imapclient.py", line 221
E       """Returns socket used to connect to server.
E       ^^^
E   IndentationError: expected an indented block after function definition on line 220
--------------------------------- JSON report ----------------------------------
report saved to: report.json
=========================== short test summary info ============================
ERROR tests/imapclient_test.py
ERROR tests/test_auth.py
ERROR tests/test_datetime_util.py
ERROR tests/test_enable.py
ERROR tests/test_fixed_offset.py
ERROR tests/test_folder_status.py
ERROR tests/test_imap_utf7.py
ERROR tests/test_imapclient.py
ERROR tests/test_init.py
ERROR tests/test_response_lexer.py
ERROR tests/test_response_parser.py
ERROR tests/test_search.py
ERROR tests/test_sort.py
ERROR tests/test_starttls.py
ERROR tests/test_store.py
ERROR tests/test_thread.py
ERROR tests/test_util_functions.py
ERROR tests/test_version.py
============================== 18 errors in 0.79s ==============================