Skip to content

back to SWE-Agent summary

SWE-Agent: flask

Failed to run pytests for test tests

ImportError while loading conftest '/testbed/tests/conftest.py'.
tests/conftest.py:8: in <module>
    from flask import Flask
src/flask/__init__.py:5: in <module>
    from . import json as json
src/flask/json/__init__.py:7: in <module>
    from .provider import _default
src/flask/json/provider.py:87: in <module>
    class DefaultJSONProvider(JSONProvider):
src/flask/json/provider.py:100: in DefaultJSONProvider
    default: t.Callable[[t.Any], t.Any] = staticmethod(_default)
E   NameError: name '_default' is not defined

Patch diff