>>> mitmproxy: Building testing/mitmproxy 8.1.1-r1 (using abuild 3.10.0_rc1-r2) started Thu, 24 Nov 2022 21:14:36 +0000 >>> mitmproxy: Checking sanity of /home/buildozer/aports/testing/mitmproxy/APKBUILD... >>> mitmproxy: Analyzing dependencies... >>> mitmproxy: Installing for build: build-base python3 py3-asgiref py3-blinker py3-brotli py3-certifi py3-click py3-cryptography py3-flask py3-h2 py3-hyperframe py3-kaitaistruct py3-ldap3 py3-msgpack py3-passlib py3-protobuf py3-asn1 py3-openssl py3-parsing py3-pyperclip py3-ruamel.yaml py3-sortedcontainers py3-tornado py3-urwid py3-wsproto py3-publicsuffix2 py3-zstandard py3-setuptools py3-hypothesis py3-parver py3-pytest py3-pytest-asyncio py3-requests (1/64) Installing libffi (3.4.4-r0) (2/64) Installing gdbm (1.23-r0) (3/64) Installing mpdecimal (2.5.1-r1) (4/64) Installing readline (8.2.0-r0) (5/64) Installing sqlite-libs (3.40.0-r0) (6/64) Installing python3 (3.11.0-r2) (7/64) Installing py3-asgiref (3.5.2-r1) (8/64) Installing py3-blinker (1.5-r1) (9/64) Installing py3-brotli (1.0.9-r10) (10/64) Installing py3-certifi (2022.9.24-r1) (11/64) Installing py3-click (8.1.3-r1) (12/64) Installing py3-cparser (2.21-r1) (13/64) Installing py3-cffi (1.15.1-r1) (14/64) Installing py3-cryptography (38.0.3-r1) (15/64) Installing py3-itsdangerous (2.1.2-r1) (16/64) Installing py3-markupsafe (2.1.1-r2) (17/64) Installing py3-jinja2 (3.1.2-r1) (18/64) Installing py3-werkzeug (2.2.2-r2) (19/64) Installing py3-flask (2.2.2-r1) (20/64) Installing py3-hyperframe (6.0.1-r1) (21/64) Installing py3-hpack (4.0.0-r5) (22/64) Installing py3-h2 (4.1.0-r1) (23/64) Installing py3-kaitaistruct (0.10-r1) (24/64) Installing py3-asn1 (0.4.8-r3) (25/64) Installing py3-ldap3 (2.9.1-r1) (26/64) Installing py3-msgpack (1.0.4-r1) (27/64) Installing py3-passlib (1.7.4-r3) (28/64) Installing tzdata (2022f-r1) (29/64) Installing py3-protobuf (4.21.9-r2) (30/64) Installing py3-openssl (22.1.0-r2) (31/64) Installing py3-parsing (3.0.9-r1) (32/64) Installing py3-pyperclip (1.8.2-r1) (33/64) Installing py3-ruamel.yaml.clib (0.2.7-r1) (34/64) Installing py3-ruamel.yaml (0.17.21-r1) (35/64) Installing py3-sortedcontainers (2.4.0-r2) (36/64) Installing py3-tornado (6.2-r1) (37/64) Installing py3-urwid (2.1.2-r3) (38/64) Installing py3-h11 (0.14.0-r1) (39/64) Installing py3-wsproto (1.2.0-r1) (40/64) Installing py3-charset-normalizer (3.0.1-r1) (41/64) Installing py3-idna (3.4-r3) (42/64) Installing py3-urllib3 (1.26.12-r1) (43/64) Installing py3-requests (2.28.1-r2) (44/64) Installing py3-publicsuffix2 (2.20191221-r3) (45/64) Installing py3-zstandard (0.19.0-r1) (46/64) Installing py3-packaging (21.3-r3) (47/64) Installing py3-setuptools (65.6.3-r0) (48/64) Installing py3-attrs (22.1.0-r1) (49/64) Installing py3-hypothesis (6.58.0-r1) (50/64) Installing py3-arpeggio (2.0.0-r1) (51/64) Installing py3-parver (0.4-r0) (52/64) Installing py3-iniconfig (1.1.1-r4) (53/64) Installing py3-pluggy (1.0.0-r2) (54/64) Installing py3-py (1.11.0-r1) (55/64) Installing py3-pytest (7.2.0-r2) (56/64) Installing py3-flaky (3.7.0-r3) (57/64) Installing py3-async_generator (1.10-r4) (58/64) Installing py3-outcome (1.2.0-r1) (59/64) Installing py3-curio (1.5-r3) (60/64) Installing py3-sniffio (1.3.0-r1) (61/64) Installing py3-trio (0.21.0-r2) (62/64) Installing py3-pytest-trio (0.8.0-r1) (63/64) Installing py3-pytest-asyncio (0.20.2-r1) (64/64) Installing .makedepends-mitmproxy (20221124.211438) Executing busybox-1.35.0-r29.trigger OK: 508 MiB in 167 packages >>> mitmproxy: Cleaning up srcdir >>> mitmproxy: Cleaning up pkgdir >>> mitmproxy: Fetching https://distfiles.alpinelinux.org/distfiles/edge/mitmproxy-8.1.1.tar.gz >>> mitmproxy: Fetching https://distfiles.alpinelinux.org/distfiles/edge/mitmproxy-8.1.1.tar.gz >>> mitmproxy: Checking sha512sums... mitmproxy-8.1.1.tar.gz: OK skip-test-optmanager-x86.patch: OK intlimit.patch: OK py311.patch: OK >>> mitmproxy: Unpacking /var/cache/distfiles/edge/mitmproxy-8.1.1.tar.gz... >>> mitmproxy: skip-test-optmanager-x86.patch patching file test/mitmproxy/test_optmanager.py Hunk #1 succeeded at 188 (offset 2 lines). >>> mitmproxy: intlimit.patch patching file test/mitmproxy/io/test_tnetstring.py >>> mitmproxy: py311.patch patching file mitmproxy/contentviews/grpc.py running build running build_py creating build creating build/lib creating build/lib/mitmproxy copying mitmproxy/master.py -> build/lib/mitmproxy copying mitmproxy/certs.py -> build/lib/mitmproxy copying mitmproxy/flow.py -> build/lib/mitmproxy copying mitmproxy/hooks.py -> build/lib/mitmproxy copying mitmproxy/eventsequence.py -> build/lib/mitmproxy copying mitmproxy/__init__.py -> build/lib/mitmproxy copying mitmproxy/version.py -> build/lib/mitmproxy copying mitmproxy/command_lexer.py -> build/lib/mitmproxy copying mitmproxy/http.py -> build/lib/mitmproxy copying mitmproxy/tcp.py -> build/lib/mitmproxy copying mitmproxy/options.py -> build/lib/mitmproxy copying mitmproxy/flowfilter.py -> build/lib/mitmproxy copying mitmproxy/connection.py -> build/lib/mitmproxy copying mitmproxy/command.py -> build/lib/mitmproxy copying mitmproxy/stateobject.py -> build/lib/mitmproxy copying mitmproxy/ctx.py -> build/lib/mitmproxy copying mitmproxy/tls.py -> build/lib/mitmproxy copying mitmproxy/log.py -> build/lib/mitmproxy copying mitmproxy/optmanager.py -> build/lib/mitmproxy copying mitmproxy/addonmanager.py -> build/lib/mitmproxy copying mitmproxy/exceptions.py -> build/lib/mitmproxy copying mitmproxy/websocket.py -> build/lib/mitmproxy copying mitmproxy/types.py -> build/lib/mitmproxy copying mitmproxy/dns.py -> build/lib/mitmproxy creating build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/auto.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/graphql.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/__init__.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/protobuf.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/hex.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/javascript.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/query.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/wbxml.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/xml_html.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/raw.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/base.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/json.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/multipart.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/msgpack.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/css.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/urlencoded.py -> build/lib/mitmproxy/contentviews copying mitmproxy/contentviews/grpc.py -> build/lib/mitmproxy/contentviews creating build/lib/mitmproxy/proxy copying mitmproxy/proxy/events.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/utils.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/server_hooks.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/__init__.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/layer.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/commands.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/context.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/tunnel.py -> build/lib/mitmproxy/proxy copying mitmproxy/proxy/server.py -> build/lib/mitmproxy/proxy creating build/lib/mitmproxy/utils copying mitmproxy/utils/arg_check.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/human.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/__init__.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/emoji.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/vt_codes.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/strutils.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/asyncio_utils.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/data.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/debug.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/spec.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/sliding_window.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/bits.py -> build/lib/mitmproxy/utils copying mitmproxy/utils/typecheck.py -> build/lib/mitmproxy/utils creating build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/serializable.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/__init__.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/bidi.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/basethread.py -> build/lib/mitmproxy/coretypes copying mitmproxy/coretypes/multidict.py -> build/lib/mitmproxy/coretypes creating build/lib/mitmproxy/contrib copying mitmproxy/contrib/__init__.py -> build/lib/mitmproxy/contrib creating build/lib/mitmproxy/net copying mitmproxy/net/server_spec.py -> build/lib/mitmproxy/net copying mitmproxy/net/udp.py -> build/lib/mitmproxy/net copying mitmproxy/net/__init__.py -> build/lib/mitmproxy/net copying mitmproxy/net/check.py -> build/lib/mitmproxy/net copying mitmproxy/net/tls.py -> build/lib/mitmproxy/net copying mitmproxy/net/encoding.py -> build/lib/mitmproxy/net creating build/lib/mitmproxy/script copying mitmproxy/script/__init__.py -> build/lib/mitmproxy/script copying mitmproxy/script/concurrent.py -> build/lib/mitmproxy/script creating build/lib/mitmproxy/tools copying mitmproxy/tools/cmdline.py -> build/lib/mitmproxy/tools copying mitmproxy/tools/dump.py -> build/lib/mitmproxy/tools copying mitmproxy/tools/__init__.py -> build/lib/mitmproxy/tools copying mitmproxy/tools/main.py -> build/lib/mitmproxy/tools creating build/lib/mitmproxy/addons copying mitmproxy/addons/block.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/termlog.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/proxyserver.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/browser.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/comment.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/asgiapp.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/maplocal.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/dumper.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/onboarding.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/keepserving.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/eventstore.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/disable_h2c.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/__init__.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/dns_resolver.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/stickyauth.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/command_history.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/core.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/script.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/stickycookie.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/anticache.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/save.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/blocklist.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/cut.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/view.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/serverplayback.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/server_side_events.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/intercept.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/tlsconfig.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/clientplayback.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/anticomp.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/upstream_auth.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/proxyauth.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/errorcheck.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/readfile.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/mapremote.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/modifybody.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/export.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/modifyheaders.py -> build/lib/mitmproxy/addons copying mitmproxy/addons/next_layer.py -> build/lib/mitmproxy/addons creating build/lib/mitmproxy/platform copying mitmproxy/platform/windows.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/pf.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/__init__.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/openbsd.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/osx.py -> build/lib/mitmproxy/platform copying mitmproxy/platform/linux.py -> build/lib/mitmproxy/platform creating build/lib/mitmproxy/io copying mitmproxy/io/__init__.py -> build/lib/mitmproxy/io copying mitmproxy/io/tnetstring.py -> build/lib/mitmproxy/io copying mitmproxy/io/io.py -> build/lib/mitmproxy/io copying mitmproxy/io/compat.py -> build/lib/mitmproxy/io creating build/lib/mitmproxy/contentviews/image copying mitmproxy/contentviews/image/image_parser.py -> build/lib/mitmproxy/contentviews/image copying mitmproxy/contentviews/image/__init__.py -> build/lib/mitmproxy/contentviews/image copying mitmproxy/contentviews/image/view.py -> build/lib/mitmproxy/contentviews/image creating build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/modes.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/__init__.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/tcp.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/tls.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/websocket.py -> build/lib/mitmproxy/proxy/layers copying mitmproxy/proxy/layers/dns.py -> build/lib/mitmproxy/proxy/layers creating build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_base.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_upstream_proxy.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_http_h2.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/__init__.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_events.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_http1.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_hooks.py -> build/lib/mitmproxy/proxy/layers/http copying mitmproxy/proxy/layers/http/_http2.py -> build/lib/mitmproxy/proxy/layers/http creating build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/hook-mitmproxy.py -> build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/hook-mitmproxy.addons.onboardingapp.py -> build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/hook-mitmproxy.tools.web.py -> build/lib/mitmproxy/utils/pyinstaller copying mitmproxy/utils/pyinstaller/__init__.py -> build/lib/mitmproxy/utils/pyinstaller creating build/lib/mitmproxy/contrib/tornado copying mitmproxy/contrib/tornado/__init__.py -> build/lib/mitmproxy/contrib/tornado creating build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/ico.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/vlq_base128_le.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/exif_be.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/exif.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/exif_le.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/__init__.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/tls_client_hello.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/google_protobuf.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/gif.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/jpeg.py -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/png.py -> build/lib/mitmproxy/contrib/kaitaistruct creating build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASWBXMLByteQueue.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/__init__.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASWBXML.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/GlobalTokens.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASCommandResponse.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/ASWBXMLCodePage.py -> build/lib/mitmproxy/contrib/wbxml copying mitmproxy/contrib/wbxml/InvalidDataException.py -> build/lib/mitmproxy/contrib/wbxml creating build/lib/mitmproxy/contrib/click copying mitmproxy/contrib/click/__init__.py -> build/lib/mitmproxy/contrib/click creating build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/__init__.py -> build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/escape_patches.py -> build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/raw_display.py -> build/lib/mitmproxy/contrib/urwid copying mitmproxy/contrib/urwid/win32.py -> build/lib/mitmproxy/contrib/urwid creating build/lib/mitmproxy/net/http copying mitmproxy/net/http/user_agents.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/status_codes.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/url.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/__init__.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/cookies.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/multipart.py -> build/lib/mitmproxy/net/http copying mitmproxy/net/http/headers.py -> build/lib/mitmproxy/net/http creating build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/op_codes.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/response_codes.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/classes.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/__init__.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/domain_names.py -> build/lib/mitmproxy/net/dns copying mitmproxy/net/dns/types.py -> build/lib/mitmproxy/net/dns creating build/lib/mitmproxy/net/http/http1 copying mitmproxy/net/http/http1/read.py -> build/lib/mitmproxy/net/http/http1 copying mitmproxy/net/http/http1/__init__.py -> build/lib/mitmproxy/net/http/http1 copying mitmproxy/net/http/http1/assemble.py -> build/lib/mitmproxy/net/http/http1 creating build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/master.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/flowdetailview.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/help.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/searchable.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/statusbar.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/signals.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/keymap.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/tabs.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/window.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/flowlist.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/__init__.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/commands.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/consoleaddons.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/flowview.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/eventlog.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/commandexecutor.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/options.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/layoutwidget.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/palettes.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/defaultkeys.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/overlay.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/common.py -> build/lib/mitmproxy/tools/console copying mitmproxy/tools/console/keybindings.py -> build/lib/mitmproxy/tools/console creating build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/master.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/webaddons.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/__init__.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/app.py -> build/lib/mitmproxy/tools/web copying mitmproxy/tools/web/static_viewer.py -> build/lib/mitmproxy/tools/web creating build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_text.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/editors.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/__init__.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_bytes.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/base.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_viewany.py -> build/lib/mitmproxy/tools/console/grideditor copying mitmproxy/tools/console/grideditor/col_subgrid.py -> build/lib/mitmproxy/tools/console/grideditor creating build/lib/mitmproxy/tools/console/commander copying mitmproxy/tools/console/commander/commander.py -> build/lib/mitmproxy/tools/console/commander copying mitmproxy/tools/console/commander/__init__.py -> build/lib/mitmproxy/tools/console/commander creating build/lib/mitmproxy/addons/onboardingapp copying mitmproxy/addons/onboardingapp/__init__.py -> build/lib/mitmproxy/addons/onboardingapp running egg_info creating mitmproxy.egg-info writing mitmproxy.egg-info/PKG-INFO writing dependency_links to mitmproxy.egg-info/dependency_links.txt writing entry points to mitmproxy.egg-info/entry_points.txt writing requirements to mitmproxy.egg-info/requires.txt writing top-level names to mitmproxy.egg-info/top_level.txt writing manifest file 'mitmproxy.egg-info/SOURCES.txt' reading manifest file 'mitmproxy.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory '*' warning: no previously-included files matching '*.pyo' found under directory '*' warning: no previously-included files matching '*.swo' found under directory '*' warning: no previously-included files matching '*.swp' found under directory '*' warning: no previously-included files matching '*.map' found under directory '*' adding license file 'LICENSE' writing manifest file 'mitmproxy.egg-info/SOURCES.txt' /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.static' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.static' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.static' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.static' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.static.images' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.static.images' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.static.images' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.static.images' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.templates' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.templates' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.templates' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.templates' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.addons.onboardingapp.templates.icons' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.addons.onboardingapp.templates.icons' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.addons.onboardingapp.templates.icons' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.addons.onboardingapp.templates.icons' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.test' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.test' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.test' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.test' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.static' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.static' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.static' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.static' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.static.fonts' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.static.fonts' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.static.fonts' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.static.fonts' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.static.images' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.static.images' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.static.images' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.static.images' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'mitmproxy.tools.web.templates' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'mitmproxy.tools.web.templates' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'mitmproxy.tools.web.templates' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'mitmproxy.tools.web.templates' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) copying mitmproxy/py.typed -> build/lib/mitmproxy creating build/lib/mitmproxy/test copying mitmproxy/test/taddons.py -> build/lib/mitmproxy/test copying mitmproxy/test/tflow.py -> build/lib/mitmproxy/test copying mitmproxy/test/tutils.py -> build/lib/mitmproxy/test copying mitmproxy/contrib/README -> build/lib/mitmproxy/contrib copying mitmproxy/contrib/kaitaistruct/make.sh -> build/lib/mitmproxy/contrib/kaitaistruct copying mitmproxy/contrib/kaitaistruct/tls_client_hello.ksy -> build/lib/mitmproxy/contrib/kaitaistruct creating build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/app.css -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/app.js -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/static.js -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/vendor.css -> build/lib/mitmproxy/tools/web/static copying mitmproxy/tools/web/static/vendor.js -> build/lib/mitmproxy/tools/web/static creating build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.eot -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.svg -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.ttf -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.woff -> build/lib/mitmproxy/tools/web/static/fonts copying mitmproxy/tools/web/static/fonts/fontawesome-webfont.woff2 -> build/lib/mitmproxy/tools/web/static/fonts creating build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/favicon.ico -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceDnsIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceExecutableIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceFlashIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceImageIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceJavaIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceNotModifiedIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceRedirectIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceTcpIcon.png -> build/lib/mitmproxy/tools/web/static/images copying mitmproxy/tools/web/static/images/resourceWebSocketIcon.png -> build/lib/mitmproxy/tools/web/static/images creating build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/LICENSE -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourceCSSIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourceDocumentIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourceJSIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools copying mitmproxy/tools/web/static/images/chrome-devtools/resourcePlainIcon.png -> build/lib/mitmproxy/tools/web/static/images/chrome-devtools creating build/lib/mitmproxy/tools/web/templates copying mitmproxy/tools/web/templates/index.html -> build/lib/mitmproxy/tools/web/templates creating build/lib/mitmproxy/addons/onboardingapp/static copying mitmproxy/addons/onboardingapp/static/bootstrap.min.css -> build/lib/mitmproxy/addons/onboardingapp/static copying mitmproxy/addons/onboardingapp/static/mitmproxy.css -> build/lib/mitmproxy/addons/onboardingapp/static creating build/lib/mitmproxy/addons/onboardingapp/static/images copying mitmproxy/addons/onboardingapp/static/images/favicon.ico -> build/lib/mitmproxy/addons/onboardingapp/static/images copying mitmproxy/addons/onboardingapp/static/images/mitmproxy-long.png -> build/lib/mitmproxy/addons/onboardingapp/static/images creating build/lib/mitmproxy/addons/onboardingapp/templates copying mitmproxy/addons/onboardingapp/templates/index.html -> build/lib/mitmproxy/addons/onboardingapp/templates copying mitmproxy/addons/onboardingapp/templates/layout.html -> build/lib/mitmproxy/addons/onboardingapp/templates creating build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/android-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/apple-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/certificate-solid.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/firefox-browser-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/linux-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons copying mitmproxy/addons/onboardingapp/templates/icons/windows-brands.svg -> build/lib/mitmproxy/addons/onboardingapp/templates/icons ============================= test session starts ============================== platform linux -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 rootdir: /home/buildozer/aports/testing/mitmproxy/src/mitmproxy-8.1.1, configfile: setup.cfg, testpaths: test plugins: flaky-3.7.0, hypothesis-6.58.0, asyncio-0.20.2, trio-0.8.0 asyncio: mode=Mode.AUTO collected 1347 items / 2 deselected / 1345 selected test/examples/test_examples.py ....... test/mitmproxy/test_addonmanager.py ........... test/mitmproxy/test_certs.py .................... test/mitmproxy/test_command.py .......... test/mitmproxy/test_command_lexer.py ................. test/mitmproxy/test_connection.py ....... test/mitmproxy/test_dns.py .......... test/mitmproxy/test_eventsequence.py ............ test/mitmproxy/test_flow.py ......... test/mitmproxy/test_flowfilter.py ............................................................... test/mitmproxy/test_hooks.py . test/mitmproxy/test_http.py ....................................................................................................... test/mitmproxy/test_log.py .. test/mitmproxy/test_master.py . test/mitmproxy/test_optmanager.py .......s........... test/mitmproxy/test_proxy.py .. test/mitmproxy/test_stateobject.py ......... test/mitmproxy/test_taddons.py ... test/mitmproxy/test_tcp.py ... test/mitmproxy/test_tls.py .. test/mitmproxy/test_types.py ................ test/mitmproxy/test_version.py . test/mitmproxy/test_websocket.py .... test/mitmproxy/addons/test_anticache.py . test/mitmproxy/addons/test_anticomp.py . test/mitmproxy/addons/test_asgiapp.py CALLED . test/mitmproxy/addons/test_block.py .................................... test/mitmproxy/addons/test_blocklist.py ........... test/mitmproxy/addons/test_browser.py ...... test/mitmproxy/addons/test_clientplayback.py ............ test/mitmproxy/addons/test_command_history.py ......... test/mitmproxy/addons/test_comment.py . test/mitmproxy/addons/test_core.py ............ test/mitmproxy/addons/test_cut.py ......... test/mitmproxy/addons/test_disable_h2c.py .. test/mitmproxy/addons/test_dns_resolver.py .. test/mitmproxy/addons/test_dumper.py ........... test/mitmproxy/addons/test_errorcheck.py ... test/mitmproxy/addons/test_eventstore.py .. test/mitmproxy/addons/test_export.py .............................. test/mitmproxy/addons/test_intercept.py ... test/mitmproxy/addons/test_keepserving.py . test/mitmproxy/addons/test_maplocal.py ....................... test/mitmproxy/addons/test_mapremote.py ... test/mitmproxy/addons/test_modifybody.py ....... test/mitmproxy/addons/test_modifyheaders.py ....... test/mitmproxy/addons/test_next_layer.py .... test/mitmproxy/addons/test_onboarding.py .E.E.E.E.E.E.E test/mitmproxy/addons/test_proxyauth.py ........................ test/mitmproxy/addons/test_proxyserver.py ......... test/mitmproxy/addons/test_save.py ........ test/mitmproxy/addons/test_script.py .................. test/mitmproxy/addons/test_server_side_events.py . test/mitmproxy/addons/test_serverplayback.py ................ test/mitmproxy/addons/test_stickyauth.py .. test/mitmproxy/addons/test_stickycookie.py ......... test/mitmproxy/addons/test_termlog.py .. test/mitmproxy/addons/test_tlsconfig.py .............. test/mitmproxy/addons/test_upstream_auth.py .. test/mitmproxy/addons/test_view.py .............................. test/mitmproxy/contentviews/test_api.py ... test/mitmproxy/contentviews/test_auto.py . test/mitmproxy/contentviews/test_base.py .. test/mitmproxy/contentviews/test_css.py ............ test/mitmproxy/contentviews/test_graphql.py ..... test/mitmproxy/contentviews/test_grpc.py .......... test/mitmproxy/contentviews/test_hex.py .. test/mitmproxy/contentviews/test_javascript.py ... test/mitmproxy/contentviews/test_json.py ..... test/mitmproxy/contentviews/test_msgpack.py ..... test/mitmproxy/contentviews/test_multipart.py .. test/mitmproxy/contentviews/test_protobuf.py .... test/mitmproxy/contentviews/test_query.py .. test/mitmproxy/contentviews/test_raw.py .. test/mitmproxy/contentviews/test_urlencoded.py .. test/mitmproxy/contentviews/test_wbxml.py .. test/mitmproxy/contentviews/test_xml_html.py ....... test/mitmproxy/contentviews/image/test_image_parser.py .............. test/mitmproxy/contentviews/image/test_view.py .. test/mitmproxy/coretypes/test_basethread.py . test/mitmproxy/coretypes/test_bidi.py . test/mitmproxy/coretypes/test_multidict.py ................... test/mitmproxy/coretypes/test_serializable.py .. test/mitmproxy/io/test_compat.py ...... test/mitmproxy/io/test_io.py .... test/mitmproxy/io/test_tnetstring.py ....... test/mitmproxy/net/test_check.py . test/mitmproxy/net/test_encoding.py .......... test/mitmproxy/net/test_server_spec.py .......... test/mitmproxy/net/test_tls.py . .. test/mitmproxy/net/test_udp.py . test/mitmproxy/net/dns/test_classes.py . test/mitmproxy/net/dns/test_domain_names.py ... test/mitmproxy/net/dns/test_op_codes.py . test/mitmproxy/net/dns/test_response_codes.py . test/mitmproxy/net/dns/test_types.py . test/mitmproxy/net/http/test_cookies.py ........... test/mitmproxy/net/http/test_headers.py .. test/mitmproxy/net/http/test_multipart.py .. test/mitmproxy/net/http/test_status_codes.py . test/mitmproxy/net/http/test_url.py ....................... test/mitmproxy/net/http/test_user_agents.py . test/mitmproxy/net/http/http1/test_assemble.py ........ test/mitmproxy/net/http/http1/test_read.py ............... test/mitmproxy/platform/test_pf.py . test/mitmproxy/proxy/test_commands.py .. test/mitmproxy/proxy/test_context.py . test/mitmproxy/proxy/test_events.py .. test/mitmproxy/proxy/test_layer.py ......... test/mitmproxy/proxy/test_server_hooks.py . test/mitmproxy/proxy/test_tunnel.py ........... test/mitmproxy/proxy/test_tutils.py ............. test/mitmproxy/proxy/test_utils.py . test/mitmproxy/proxy/layers/test_dns.py ....... test/mitmproxy/proxy/layers/test_modes.py .......................... test/mitmproxy/proxy/layers/test_socks5_fuzz.py . test/mitmproxy/proxy/layers/test_tcp.py ........ test/mitmproxy/proxy/layers/test_tls.py ...................... test/mitmproxy/proxy/layers/test_tls_fuzz.py . test/mitmproxy/proxy/layers/test_websocket.py .................... test/mitmproxy/proxy/layers/http/test_http.py ................................................................................................................. test/mitmproxy/proxy/layers/http/test_http1.py ............ test/mitmproxy/proxy/layers/http/test_http2.py ......................................... test/mitmproxy/proxy/layers/http/test_http_fuzz.py ......... test/mitmproxy/proxy/layers/http/test_http_version_interop.py .. test/mitmproxy/script/test_concurrent.py ... test/mitmproxy/tools/test_cmdline.py .... test/mitmproxy/tools/test_dump.py .... test/mitmproxy/tools/test_main.py .. test/mitmproxy/tools/console/test_commander.py ............. test/mitmproxy/tools/console/test_common.py ... test/mitmproxy/tools/console/test_contentview.py . test/mitmproxy/tools/console/test_defaultkeys.py . test/mitmproxy/tools/console/test_flowview.py . test/mitmproxy/tools/console/test_integration.py .... test/mitmproxy/tools/console/test_keymap.py ...... test/mitmproxy/tools/console/test_palettes.py . test/mitmproxy/tools/console/test_statusbar.py ....... test/mitmproxy/tools/web/test_app.py ............................. test/mitmproxy/tools/web/test_static_viewer.py ...... test/mitmproxy/utils/test_arg_check.py ......... test/mitmproxy/utils/test_asyncio_utils.py . test/mitmproxy/utils/test_data.py . test/mitmproxy/utils/test_debug.py ...... test/mitmproxy/utils/test_emoji.py . test/mitmproxy/utils/test_human.py ...... test/mitmproxy/utils/test_sliding_window.py .. test/mitmproxy/utils/test_spec.py . test/mitmproxy/utils/test_strutils.py ........... test/mitmproxy/utils/test_typecheck.py ........ test/mitmproxy/utils/test_vt_codes.py . test/release/test_cibuild.py ................... ==================================== ERRORS ==================================== ___________________ ERROR at teardown of TestApp.test_basic ____________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError _________________ ERROR at teardown of TestApp.test_cert[pem] __________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError _________________ ERROR at teardown of TestApp.test_cert[p12] __________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError _________________ ERROR at teardown of TestApp.test_cert[cer] __________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError _________________ ERROR at teardown of TestApp.test_head[pem] __________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError _________________ ERROR at teardown of TestApp.test_head[p12] __________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError _________________ ERROR at teardown of TestApp.test_head[cer] __________________ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] > self.app.do_teardown_request(exc) /usr/lib/python3.11/site-packages/flask/ctx.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def do_teardown_request( self, exc: t.Optional[BaseException] = _sentinel # type: ignore ) -> None: """Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with :meth:`teardown_request`, and :meth:`Blueprint.teardown_request` if a blueprint handled the request. Finally, the :data:`request_tearing_down` signal is sent. This is called by :meth:`RequestContext.pop() `, which may be delayed during testing to maintain access to resources. :param exc: An unhandled exception raised while dispatching the request. Detected from the current exception information if not passed. Passed to each teardown function. .. versionchanged:: 0.9 Added the ``exc`` argument. """ if exc is _sentinel: exc = sys.exc_info()[1] > for name in chain(request.blueprints, (None,)): /usr/lib/python3.11/site-packages/flask/app.py:2370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = proxy __getattr__, instance = owner = def __get__(self, instance: "LocalProxy", owner: t.Optional[type] = None) -> t.Any: if instance is None: if self.class_value is not None: return self.class_value return self try: > obj = instance._get_current_object() # type: ignore[misc] /usr/lib/python3.11/site-packages/werkzeug/local.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _get_current_object() -> T: try: obj = local.get() # type: ignore[union-attr] except LookupError: > raise RuntimeError(unbound_message) from None E RuntimeError: Working outside of request context. E  E This typically means that you attempted to use functionality that needed E an active HTTP request. Consult the documentation on testing for E information about how to avoid this problem. /usr/lib/python3.11/site-packages/werkzeug/local.py:513: RuntimeError During handling of the above exception, another exception occurred: @pytest.fixture def client(): > with onboarding.app.test_client() as client: test/mitmproxy/addons/test_onboarding.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/flask/testing.py:250: in __exit__ self._context_stack.close() /usr/lib/python3.11/contextlib.py:594: in close self.__exit__(None, None, None) /usr/lib/python3.11/contextlib.py:586: in __exit__ raise exc_details[1] /usr/lib/python3.11/contextlib.py:571: in __exit__ if cb(*exc_details): /usr/lib/python3.11/site-packages/flask/ctx.py:432: in __exit__ self.pop(exc_value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = LookupError() def pop(self, exc: t.Optional[BaseException] = _sentinel) -> None: # type: ignore """Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the :meth:`~flask.Flask.teardown_request` decorator. .. versionchanged:: 0.9 Added the `exc` argument. """ clear_request = len(self._cv_tokens) == 1 try: if clear_request: if exc is _sentinel: exc = sys.exc_info()[1] self.app.do_teardown_request(exc) request_close = getattr(self.request, "close", None) if request_close is not None: request_close() finally: > ctx = _cv_request.get() E LookupError:  /usr/lib/python3.11/site-packages/flask/ctx.py:405: LookupError =============================== warnings summary =============================== ../../../../../../../usr/lib/python3.11/site-packages/passlib/utils/__init__.py:854 /usr/lib/python3.11/site-packages/passlib/utils/__init__.py:854: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13 from crypt import crypt as _crypt mitmproxy/contentviews/image/view.py:1 /home/buildozer/aports/testing/mitmproxy/src/mitmproxy-8.1.1/mitmproxy/contentviews/image/view.py:1: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13 import imghdr test/mitmproxy/addons/test_clientplayback.py::test_playback[-1-err] /usr/lib/python3.11/asyncio/base_events.py:675: RuntimeWarning: coroutine 'ConnectionHandler.hook_task' was never awaited self._ready.clear() Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. test/mitmproxy/addons/test_save.py::test_dns /usr/lib/python3.11/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/queues.py", line 158, in get await getter GeneratorExit During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/buildozer/aports/testing/mitmproxy/src/mitmproxy-8.1.1/mitmproxy/proxy/server.py", line 254, in handle_connection data = await reader.read(65535) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildozer/aports/testing/mitmproxy/src/mitmproxy-8.1.1/mitmproxy/net/udp.py", line 267, in read return await self._packets.get() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/queues.py", line 160, in get getter.cancel() # Just in case getter is not done yet. ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 758, in call_soon self._check_closed() File "/usr/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_basic - LookupError: ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_cert[pem] - LookupError: ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_cert[p12] - LookupError: ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_cert[cer] - LookupError: ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_head[pem] - LookupError: ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_head[p12] - LookupError: ERROR test/mitmproxy/addons/test_onboarding.py::TestApp::test_head[cer] - LookupError: ===== 1344 passed, 1 skipped, 2 deselected, 4 warnings, 7 errors in 43.98s ===== >>> ERROR: mitmproxy: check failed >>> mitmproxy: Uninstalling dependencies... (1/64) Purging .makedepends-mitmproxy (20221124.211438) (2/64) Purging py3-asgiref (3.5.2-r1) (3/64) Purging py3-blinker (1.5-r1) (4/64) Purging py3-brotli (1.0.9-r10) (5/64) Purging py3-flask (2.2.2-r1) (6/64) Purging py3-click (8.1.3-r1) (7/64) Purging py3-itsdangerous (2.1.2-r1) (8/64) Purging py3-jinja2 (3.1.2-r1) (9/64) Purging py3-werkzeug (2.2.2-r2) (10/64) Purging py3-markupsafe (2.1.1-r2) (11/64) Purging py3-h2 (4.1.0-r1) (12/64) Purging py3-hpack (4.0.0-r5) (13/64) Purging py3-hyperframe (6.0.1-r1) (14/64) Purging py3-kaitaistruct (0.10-r1) (15/64) Purging py3-ldap3 (2.9.1-r1) (16/64) Purging py3-msgpack (1.0.4-r1) (17/64) Purging py3-passlib (1.7.4-r3) (18/64) Purging py3-protobuf (4.21.9-r2) (19/64) Purging tzdata (2022f-r1) (20/64) Purging py3-asn1 (0.4.8-r3) (21/64) Purging py3-pyperclip (1.8.2-r1) (22/64) Purging py3-ruamel.yaml (0.17.21-r1) (23/64) Purging py3-ruamel.yaml.clib (0.2.7-r1) (24/64) Purging py3-tornado (6.2-r1) (25/64) Purging py3-urwid (2.1.2-r3) (26/64) Purging py3-wsproto (1.2.0-r1) (27/64) Purging py3-h11 (0.14.0-r1) (28/64) Purging py3-publicsuffix2 (2.20191221-r3) (29/64) Purging py3-zstandard (0.19.0-r1) (30/64) Purging py3-setuptools (65.6.3-r0) (31/64) Purging py3-hypothesis (6.58.0-r1) (32/64) Purging py3-parver (0.4-r0) (33/64) Purging py3-arpeggio (2.0.0-r1) (34/64) Purging py3-pytest-asyncio (0.20.2-r1) (35/64) Purging py3-flaky (3.7.0-r3) (36/64) Purging py3-pytest-trio (0.8.0-r1) (37/64) Purging py3-pytest (7.2.0-r2) (38/64) Purging py3-iniconfig (1.1.1-r4) (39/64) Purging py3-packaging (21.3-r3) (40/64) Purging py3-parsing (3.0.9-r1) (41/64) Purging py3-pluggy (1.0.0-r2) (42/64) Purging py3-py (1.11.0-r1) (43/64) Purging py3-trio (0.21.0-r2) (44/64) Purging py3-openssl (22.1.0-r2) (45/64) Purging py3-cryptography (38.0.3-r1) (46/64) Purging py3-cffi (1.15.1-r1) (47/64) Purging py3-cparser (2.21-r1) (48/64) Purging py3-sniffio (1.3.0-r1) (49/64) Purging py3-curio (1.5-r3) (50/64) Purging py3-sortedcontainers (2.4.0-r2) (51/64) Purging py3-outcome (1.2.0-r1) (52/64) Purging py3-attrs (22.1.0-r1) (53/64) Purging py3-async_generator (1.10-r4) (54/64) Purging py3-requests (2.28.1-r2) (55/64) Purging py3-certifi (2022.9.24-r1) (56/64) Purging py3-charset-normalizer (3.0.1-r1) (57/64) Purging py3-idna (3.4-r3) (58/64) Purging py3-urllib3 (1.26.12-r1) (59/64) Purging python3 (3.11.0-r2) (60/64) Purging libffi (3.4.4-r0) (61/64) Purging gdbm (1.23-r0) (62/64) Purging mpdecimal (2.5.1-r1) (63/64) Purging readline (8.2.0-r0) (64/64) Purging sqlite-libs (3.40.0-r0) Executing busybox-1.35.0-r29.trigger OK: 380 MiB in 103 packages