<86>Dec 27 15:16:05 userdel[1366889]: delete user 'rooter' <86>Dec 27 15:16:05 groupadd[1366901]: group added to /etc/group: name=rooter, GID=1220 <86>Dec 27 15:16:05 groupadd[1366901]: group added to /etc/gshadow: name=rooter <86>Dec 27 15:16:05 groupadd[1366901]: new group: name=rooter, GID=1220 <86>Dec 27 15:16:05 useradd[1366912]: new user: name=rooter, UID=1220, GID=1220, home=/root, shell=/bin/bash, from=none <86>Dec 27 15:16:05 userdel[1366923]: delete user 'builder' <86>Dec 27 15:16:05 userdel[1366923]: removed shadow group 'builder' owned by 'builder' <86>Dec 27 15:16:05 groupadd[1366937]: group added to /etc/group: name=builder, GID=1221 <86>Dec 27 15:16:05 groupadd[1366937]: group added to /etc/gshadow: name=builder <86>Dec 27 15:16:05 groupadd[1366937]: new group: name=builder, GID=1221 <86>Dec 27 15:16:05 useradd[1366945]: new user: name=builder, UID=1221, GID=1221, home=/usr/src, shell=/bin/bash, from=none <13>Dec 27 15:16:11 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Dec 27 15:16:11 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed <13>Dec 27 15:16:11 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Dec 27 15:16:11 rpmi: openssl-config-3.2.0-alt1 icarus+366667.200.1.1 1735293231 installed <13>Dec 27 15:16:11 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Dec 27 15:16:11 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 27 15:16:11 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Dec 27 15:16:11 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 27 15:16:11 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 27 15:16:11 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Dec 27 15:16:11 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Dec 27 15:16:11 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 27 15:16:11 rpmi: libcrypto3-3.3.2-alt1 icarus+366667.100.1.1 1735293186 installed <13>Dec 27 15:16:11 rpmi: libssl3-3.3.2-alt1 icarus+366667.100.1.1 1735293186 installed <13>Dec 27 15:16:11 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 15:16:12 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 15:16:12 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Dec 27 15:16:12 rpmi: tests-for-installed-python3-pkgs-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Dec 27 15:16:12 rpmi: rpm-build-python3-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Dec 27 15:16:15 rpmi: python3-module-docutils-0.20.1-alt1 sisyphus+323438.100.1.1 1687370718 installed <13>Dec 27 15:16:15 rpmi: python3-module-urllib3-2:2.3.0-alt1 sisyphus+366320.100.2.1 1735116352 installed <13>Dec 27 15:16:15 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Dec 27 15:16:15 rpmi: python3-module-attrs-24.2.0-alt2 sisyphus+355603.200.1.1 1724160494 installed <13>Dec 27 15:16:15 rpmi: python3-module-Pygments-2.18.0-alt1 sisyphus+347552.100.1.1 1714992955 installed <13>Dec 27 15:16:15 rpmi: python3-module-more-itertools-10.5.0-alt1 sisyphus+357221.100.1.1 1725964420 installed <13>Dec 27 15:16:15 rpmi: python3-module-certifi-2024.8.30-alt1 sisyphus+356919.100.1.1 1725546651 installed <13>Dec 27 15:16:15 rpmi: python3-module-packaging-24.2-alt1 sisyphus+362183.100.1.1 1731315992 installed <13>Dec 27 15:16:15 rpmi: python3-module-six-1.17.0-alt1 sisyphus+364177.100.1.1 1733425205 installed <13>Dec 27 15:16:15 rpmi: libtcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548266 installed <13>Dec 27 15:16:15 rpmi: python3-module-dateutil-2.8.3-alt0.git0586f4a sisyphus+338928.600.2.1 1706746480 installed <13>Dec 27 15:16:15 rpmi: python3-module-jaraco.functools-4.1.0-alt1 sisyphus+358564.100.1.1 1727528718 installed <13>Dec 27 15:16:15 rpmi: python3-module-sortedcontainers-2.4.0-alt1 sisyphus+272042.100.1.1 1621262424 installed <13>Dec 27 15:16:15 rpmi: python3-module-sniffio-1.3.1-alt1 sisyphus+341424.100.1.1 1708941879 installed <13>Dec 27 15:16:15 rpmi: python3-module-markupsafe-1:3.0.2-alt1 sisyphus+360209.100.1.1 1729323052 installed <13>Dec 27 15:16:15 rpmi: python3-module-jinja2-3.1.4-alt1 sisyphus+348267.100.1.1 1715939549 installed <13>Dec 27 15:16:15 rpmi: python3-module-jmespath-1.0.1-alt1 sisyphus+317988.100.2.1 1680612150 installed <13>Dec 27 15:16:15 rpmi: python3-module-click-8.1.8-alt1 sisyphus+366297.100.1.1 1734946237 installed <13>Dec 27 15:16:15 rpmi: python3-module-zope.interface-7.2-alt1 sisyphus+363572.100.1.1 1732797441 installed <13>Dec 27 15:16:15 rpmi: python3-module-incremental-22.10.0-alt1 sisyphus+312706.100.1.1 1672404273 installed <13>Dec 27 15:16:16 rpmi: python3-module-werkzeug-3.1.3-alt1 sisyphus+361875.200.2.1 1731337173 installed <13>Dec 27 15:16:16 rpmi: tcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548266 installed <13>Dec 27 15:16:16 rpmi: python3-module-alabaster-0.7.16-alt1 sisyphus+349698.100.1.1 1716897815 installed <13>Dec 27 15:16:16 rpmi: python3-module-outcome-1.3.0-alt1 sisyphus+332382.100.1.1 1697882349 installed <13>Dec 27 15:16:16 rpmi: python3-module-hyperlink-21.0.0-alt1.1 sisyphus+304836.100.1.1 1659710964 installed <13>Dec 27 15:16:16 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Dec 27 15:16:16 rpmi: python3-module-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609968 installed <13>Dec 27 15:16:16 rpmi: python3-module-platformdirs-4.3.6-alt1 sisyphus+357787.200.1.1 1726664692 installed <13>Dec 27 15:16:16 rpmi: python3-module-mock-5.1.0-alt1 sisyphus+325622.100.1.1 1690382129 installed <13>Dec 27 15:16:16 rpmi: python3-module-jaraco.context-6.0.1-alt1 sisyphus+357809.300.1.1 1726769204 installed <13>Dec 27 15:16:16 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Dec 27 15:16:16 rpmi: python3-module-pytest-8.3.4-alt1 sisyphus+363889.100.1.1 1733152874 installed <13>Dec 27 15:16:16 rpmi: python3-module-uc-micro-py-1.0.3-alt1 sisyphus+341790.100.1.1 1709309103 installed <13>Dec 27 15:16:16 rpmi: python3-module-linkify-it-py-2.0.3-alt1 sisyphus+343902.100.1.1 1711708185 installed <13>Dec 27 15:16:16 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Dec 27 15:16:16 rpmi: python3-module-markdown-it-3.0.0-alt2 sisyphus+365460.100.1.1 1734639341 installed <13>Dec 27 15:16:16 rpmi: python3-module-rich-13.9.4-alt1 sisyphus+361780.100.1.1 1730842428 installed <13>Dec 27 15:16:16 rpmi: python3-module-railroad-diagrams-3.0.1-alt1 sisyphus+358318.100.1.1 1727257812 installed <13>Dec 27 15:16:16 rpmi: python3-module-pyparsing-3.2.0-alt1 sisyphus+359723.100.2.1 1728989647 installed <13>Dec 27 15:16:16 rpmi: python3-module-socksio-1.0.0-alt1 sisyphus+295017.1500.2.1 1644498004 installed <13>Dec 27 15:16:16 rpmi: python3-module-h11-0.14.0-alt1 sisyphus+312690.100.1.1 1672395335 installed <13>Dec 27 15:16:16 rpmi: python3-module-httpcore-1.0.5-alt1 sisyphus+347570.100.1.1 1715005713 installed <13>Dec 27 15:16:16 rpmi: python3-module-ply-3.11-alt3 sisyphus+339052.100.1.1 1706247931 installed <13>Dec 27 15:16:16 rpmi: python3-module-jsonpath-ng-1.7.0-alt1 sisyphus+359704.100.1.1 1728896567 installed <13>Dec 27 15:16:16 rpmi: python3-module-psutil-5.9.8-alt1 sisyphus+341001.100.1.1 1708284056 installed <13>Dec 27 15:16:16 rpmi: python3-module-objgraph-3.6.2-alt1 sisyphus+359468.100.1.1 1728573508 installed <13>Dec 27 15:16:16 rpmi: python3-module-greenlet-3.1.1-alt1 sisyphus+358881.100.1.1 1727933137 installed <13>Dec 27 15:16:16 rpmi: python3-module-snowballstemmer-2.2.0-alt1 sisyphus+319215.100.1.1 1682346633 installed <13>Dec 27 15:16:16 rpmi: python3-module-imagesize-1.4.1-alt1 sisyphus+318084.100.1.1 1680697673 installed <13>Dec 27 15:16:16 rpmi: python3-module-defusedxml-0.7.1-alt1 sisyphus+274841.2300.1.1 1624295691 installed <13>Dec 27 15:16:16 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733155 installed <13>Dec 27 15:16:16 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Dec 27 15:16:17 rpmi: python3-module-babel-1:2.15.0-alt1 sisyphus+353791.100.1.1 1722073848 installed <13>Dec 27 15:16:17 rpmi: python3-module-typing_extensions-4.12.2-alt1 sisyphus+351501.100.1.2 1719296652 installed <13>Dec 27 15:16:17 rpmi: python3-module-priority-2.0.0-alt3 sisyphus+338701.100.1.2 1705988383 installed <13>Dec 27 15:16:17 rpmi: python3-module-hpack-4.0.0-alt1 sisyphus+270376.200.1.1 1618956626 installed <13>Dec 27 15:16:17 rpmi: python3-module-hyperframe-6.0.1-alt1 sisyphus+270376.300.2.1 1618957001 installed <13>Dec 27 15:16:17 rpmi: python3-module-h2-4.1.0-alt1 sisyphus+325714.100.2.2 1690478873 installed <13>Dec 27 15:16:17 rpmi: python3-module-constantly-15.1.0-alt7 sisyphus+338906.100.1.1 1706107088 installed <13>Dec 27 15:16:17 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Dec 27 15:16:17 rpmi: python3-module-cffi-1.17.1-alt1 sisyphus+357396.100.1.1 1726156476 installed <13>Dec 27 15:16:17 rpmi: python3-module-cryptography-43.0.0-alt1 sisyphus+353417.100.1.1 1721731007 installed <13>Dec 27 15:16:17 rpmi: python3-module-openssl-24.2.1-alt1 sisyphus+353417.200.1.1 1721731036 installed <13>Dec 27 15:16:17 rpmi: python3-module-redis-py-4.5.5-alt1.1 sisyphus+332415.100.1.1 1697904078 installed <13>Dec 27 15:16:17 rpmi: python3-module-autocommand-2.2.2-alt1.1 sisyphus+339714.100.1.1 1706968174 installed <13>Dec 27 15:16:17 rpmi: python3-module-jaraco.text-4.0.0-alt1 sisyphus+353877.400.2.1 1722250727 installed <13>Dec 27 15:16:17 rpmi: python3-module-jaraco.collections-5.1.0-alt1 sisyphus+357809.200.1.1 1726769173 installed <13>Dec 27 15:16:17 rpmi: python3-module-pkg_resources-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185054 installed <13>Dec 27 15:16:17 rpmi: python3-module-astor-0.8.1-alt1.1 sisyphus+315877.100.1.1 1677481862 installed <13>Dec 27 15:16:17 rpmi: python3-module-trio-0.27.0-alt1 sisyphus+360354.100.1.1 1729536849 installed <13>Dec 27 15:16:17 rpmi: python3-module-dns-1:2.6.1-alt1 sisyphus+341811.20.3.1 1709382170 installed <13>Dec 27 15:16:17 rpmi: python3-module-appdirs-1.4.4-alt2 sisyphus+359005.100.1.1 1728036426 installed <13>Dec 27 15:16:17 rpmi: python-sphinx-objects.inv-1:2.3.14.20241219-alt1 sisyphus+365435.100.1.1 1734616744 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-applehelp-2.0.0-alt1 sisyphus+353872.100.1.1 1722243556 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-devhelp-2.0.0-alt1 sisyphus+353872.200.1.1 1722243589 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-jquery-4.1-alt3 sisyphus+339023.100.1.1 1706234262 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt2 sisyphus+348403.100.1.1 1716017686 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-htmlhelp-2.1.0-alt1 sisyphus+353893.100.2.1 1722416845 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-serializinghtml-2.0.0-alt1 sisyphus+361088.100.1.1 1730215552 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinxcontrib-qthelp-2.0.0-alt1 sisyphus+353872.300.1.1 1722243619 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinx-sphinx-build-symlink-1:7.4.7-alt3 sisyphus+354020.100.1.1 1722434734 installed <13>Dec 27 15:16:17 rpmi: python3-module-sphinx-1:7.4.7-alt3 sisyphus+354020.100.1.1 1722434734 installed <13>Dec 27 15:16:18 rpmi: python3-module-botocore-1.35.37-alt1 sisyphus+359463.100.2.3 1728576848 installed <13>Dec 27 15:16:18 rpmi: python3-module-s3transfer-0.10.4-alt1 sisyphus+363066.100.1.1 1732184388 installed <13>Dec 27 15:16:18 rpmi: libpython3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 15:16:19 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Dec 27 15:16:19 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Dec 27 15:16:19 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Dec 27 15:16:20 rpmi: python3-dev-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 15:16:20 rpmi: openldap-common-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 27 15:16:20 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684803947 installed <13>Dec 27 15:16:20 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819640 installed <13>Dec 27 15:16:20 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Dec 27 15:16:20 rpmi: libusb-1.0.27-alt1 sisyphus+347412.100.1.1 1714739651 installed <13>Dec 27 15:16:20 rpmi: libhidapi-0.12.0-alt1_1 sisyphus+303213.100.1.1 1657034192 installed <13>Dec 27 15:16:20 rpmi: python3-module-cython-hidapi-0.14.0-alt1.1 sisyphus+333513.54340.73.1 1704651867 installed <13>Dec 27 15:16:20 rpmi: python3-module-serial-3.5-alt3 sisyphus+360600.100.2.1 1729786231 installed <13>Dec 27 15:16:20 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729908 installed <86>Dec 27 15:16:20 groupadd[1373391]: group added to /etc/group: name=_keytab, GID=999 <86>Dec 27 15:16:20 groupadd[1373391]: group added to /etc/gshadow: name=_keytab <86>Dec 27 15:16:20 groupadd[1373391]: new group: name=_keytab, GID=999 <13>Dec 27 15:16:20 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735141 installed <86>Dec 27 15:16:20 groupadd[1373409]: group added to /etc/group: name=sasl, GID=998 <86>Dec 27 15:16:20 groupadd[1373409]: group added to /etc/gshadow: name=sasl <86>Dec 27 15:16:20 groupadd[1373409]: new group: name=sasl, GID=998 <13>Dec 27 15:16:20 rpmi: libsasl2-3-2.1.28-alt2 sisyphus+343335.100.1.1 1711112544 installed <13>Dec 27 15:16:20 rpmi: libldap2-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 27 15:16:20 rpmi: libpq5-17.2-alt1 sisyphus+362974.100.1.1 1732098488 installed <13>Dec 27 15:16:20 rpmi: python3-module-psycopg2-2.9.10-alt1 sisyphus+361099.100.1.1 1730221764 installed <13>Dec 27 15:16:20 rpmi: libcares-1.34.4-alt1 sisyphus+366652.100.1.1 1735281164 installed <13>Dec 27 15:16:20 rpmi: python3-module-pycares-4.4.0-alt1 sisyphus+347421.100.1.1 1714743573 installed <13>Dec 27 15:16:20 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781682 installed <13>Dec 27 15:16:20 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 27 15:16:20 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 27 15:16:20 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Dec 27 15:16:20 rpmi: libharfbuzz-10.1.0-alt1 sisyphus+361773.100.1.1 1730824042 installed <13>Dec 27 15:16:20 rpmi: libfreetype-2.13.3-alt1 sisyphus+355656.100.1.1 1724221064 installed <13>Dec 27 15:16:20 rpmi: libfontconfig1-2.15.0-alt1 sisyphus+355771.100.2.3 1724337298 installed <13>Dec 27 15:16:20 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441061 installed <13>Dec 27 15:16:20 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Dec 27 15:16:20 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 27 15:16:20 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 27 15:16:20 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 27 15:16:20 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436130 installed <13>Dec 27 15:16:20 rpmi: libXft-2.3.8-alt1 sisyphus+331490.400.1.1 1697023269 installed <13>Dec 27 15:16:20 rpmi: libtk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548530 installed <13>Dec 27 15:16:20 rpmi: tk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548530 installed <13>Dec 27 15:16:20 rpmi: tcl-tix-8.4.3-alt4 sisyphus+277292.300.2.1 1625442550 installed <13>Dec 27 15:16:21 rpmi: python3-modules-tkinter-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 15:16:21 rpmi: python3-module-twisted-logger-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Dec 27 15:16:21 rpmi: python3-module-twisted-web-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Dec 27 15:16:21 rpmi: python3-module-twisted-words-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Dec 27 15:16:21 rpmi: python3-module-automat-24.8.1-alt1 sisyphus+355768.100.2.1 1724411664 installed <13>Dec 27 15:16:21 rpmi: python3-module-twisted-core-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Dec 27 15:16:21 rpmi: python3-module-twisted-names-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Dec 27 15:16:21 rpmi: python3-module-tornado-6.4.2-alt1 sisyphus+363445.100.1.1 1732635491 installed <13>Dec 27 15:16:21 rpmi: python3-module-eventlet-0.38.2-alt1 sisyphus+365048.100.1.1 1734193970 installed <13>Dec 27 15:16:21 rpmi: python3-module-setuptools-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185054 installed <13>Dec 27 15:16:21 rpmi: python3-module-boto3-1.35.37-alt1 sisyphus+359463.200.2.3 1728577238 installed <13>Dec 27 15:16:21 rpmi: python3-module-fakeredis-2.18.0-alt1 sisyphus+327212.200.2.2 1692097611 installed <13>Dec 27 15:16:21 rpmi: python3-module-httpx-0.27.0-alt1 sisyphus+347574.100.1.1 1715005951 installed <13>Dec 27 15:16:21 rpmi: python3-module-httplib2-0.22.0-alt1 sisyphus+317205.100.1.1 1679487967 installed <13>Dec 27 15:16:21 rpmi: python3-module-pytest-httpserver-1.1.0-alt1 sisyphus+354948.100.1.1 1723435275 installed <13>Dec 27 15:16:21 rpmi: python3-module-sure-2.0.1-alt1 sisyphus+348284.100.2.1 1716195847 installed <13>Dec 27 15:16:21 rpmi: python3-module-freezegun-1.5.1-alt1 sisyphus+347914.100.1.1 1715596213 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-httpretty-1.1.4-alt2.nosrc.rpm (w1.gzdio) <13>Dec 27 15:16:23 rpmi: python3-module-pyproject-installer-0.5.5-alt2 sisyphus+366395.100.1.1 1735032014 installed Installing python3-module-httpretty-1.1.4-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.49359 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf httpretty-1.1.4 + echo 'Source #0 (httpretty-1.1.4.tar):' Source #0 (httpretty-1.1.4.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/httpretty-1.1.4.tar + cd httpretty-1.1.4 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.49359 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd httpretty-1.1.4 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/httpretty-1.1.4 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/httpretty-1.1.4/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec INFO : pyproject_installer.lib.build_backend : pyproject.toml was not found, using defaults INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta:__legacy__ INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/httpretty-1.1.4/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} /usr/lib64/python3/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /usr/lib64/python3/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) INFO : root : running bdist_wheel INFO : root : running build INFO : root : running build_py INFO : root : creating build/lib/httpretty INFO : root : copying httpretty/__init__.py -> build/lib/httpretty INFO : root : copying httpretty/compat.py -> build/lib/httpretty INFO : root : copying httpretty/core.py -> build/lib/httpretty INFO : root : copying httpretty/errors.py -> build/lib/httpretty INFO : root : copying httpretty/http.py -> build/lib/httpretty INFO : root : copying httpretty/utils.py -> build/lib/httpretty INFO : root : copying httpretty/version.py -> build/lib/httpretty INFO : root : installing to build/bdist.linux-x86_64/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-x86_64/wheel INFO : root : creating build/bdist.linux-x86_64/wheel/httpretty INFO : root : copying build/lib/httpretty/__init__.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : copying build/lib/httpretty/compat.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : copying build/lib/httpretty/core.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : copying build/lib/httpretty/errors.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : copying build/lib/httpretty/http.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : copying build/lib/httpretty/utils.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : copying build/lib/httpretty/version.py -> build/bdist.linux-x86_64/wheel/./httpretty INFO : root : running install_egg_info INFO : root : running egg_info INFO : root : creating httpretty.egg-info INFO : root : writing httpretty.egg-info/PKG-INFO INFO : root : writing dependency_links to httpretty.egg-info/dependency_links.txt INFO : root : writing top-level names to httpretty.egg-info/top_level.txt INFO : root : writing manifest file 'httpretty.egg-info/SOURCES.txt' INFO : root : reading manifest file 'httpretty.egg-info/SOURCES.txt' INFO : root : reading manifest template 'MANIFEST.in' INFO : root : adding license file 'COPYING' INFO : root : writing manifest file 'httpretty.egg-info/SOURCES.txt' INFO : root : Copying httpretty.egg-info to build/bdist.linux-x86_64/wheel/./httpretty-1.1.4-py3.12.egg-info INFO : root : running install_scripts INFO : root : creating build/bdist.linux-x86_64/wheel/httpretty-1.1.4.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/httpretty-1.1.4/dist/.tmp-53nyurl3/httpretty-1.1.4-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it INFO : wheel : adding 'httpretty/__init__.py' INFO : wheel : adding 'httpretty/compat.py' INFO : wheel : adding 'httpretty/core.py' INFO : wheel : adding 'httpretty/errors.py' INFO : wheel : adding 'httpretty/http.py' INFO : wheel : adding 'httpretty/utils.py' INFO : wheel : adding 'httpretty/version.py' INFO : wheel : adding 'httpretty-1.1.4.dist-info/COPYING' INFO : wheel : adding 'httpretty-1.1.4.dist-info/METADATA' INFO : wheel : adding 'httpretty-1.1.4.dist-info/WHEEL' INFO : wheel : adding 'httpretty-1.1.4.dist-info/top_level.txt' INFO : wheel : adding 'httpretty-1.1.4.dist-info/RECORD' INFO : root : removing build/bdist.linux-x86_64/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: httpretty-1.1.4-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.49359 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-httpretty-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-httpretty-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd httpretty-1.1.4 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-httpretty-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/httpretty-1.1.4/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: httpretty-1.1.4-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-httpretty-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: httpretty-1.1.4.dist-info/COPYING DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: httpretty-1.1.4.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: httpretty-1.1.4.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: httpretty-1.1.4.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-httpretty-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-httpretty-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-httpretty-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-httpretty-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-httpretty-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-httpretty-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-httpretty-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-httpretty-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/__init__.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/compat.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/core.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/errors.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/http.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/utils.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/version.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-httpretty-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/__init__.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/compat.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/core.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/errors.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/http.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/utils.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/version.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-httpretty-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/__init__.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/compat.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/core.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/errors.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/http.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/utils.py compile /usr/src/tmp/python3-module-httpretty-buildroot/usr/lib/python3/site-packages/httpretty/version.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/httpretty/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/compat.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/compat.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/compat.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/compat.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/core.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/core.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/errors.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/errors.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/errors.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/errors.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/http.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/http.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/utils.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/utils.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/utils.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/utils.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/version.cpython-312.pyc' './usr/lib/python3/site-packages/httpretty/__pycache__/version.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/httpretty/__pycache__/version.cpython-312.opt-1.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.48607 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd httpretty-1.1.4 + export EVENTLET_NO_GREENDNS=yes + EVENTLET_NO_GREENDNS=yes + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -k 'not test_http_passthrough and not test_https_passthrough and not test_httpretty_should_allow_forcing_headers_urllib2 and not test_debug and not test_httpretty_should_allow_registering_regexes_with_streaming_responses and not test_httpretty_should_handle_paths_starting_with_two_slashes and not test_httpretty_bypasses_when_disabled and not test_httpretty_bypasses_a_unregistered_request and not test_using_httpretty_with_other_tcp_protocols and not test_disallow_net_connect_1 and not test_recording_calls' INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/httpretty-1.1.4/dist/httpretty-1.1.4-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/httpretty-1.1.4/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/httpretty-1.1.4/dist/httpretty-1.1.4-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-k', 'not test_http_passthrough and not test_https_passthrough and not test_httpretty_should_allow_forcing_headers_urllib2 and not test_debug and not test_httpretty_should_allow_registering_regexes_with_streaming_responses and not test_httpretty_should_handle_paths_starting_with_two_slashes and not test_httpretty_bypasses_when_disabled and not test_httpretty_bypasses_a_unregistered_request and not test_using_httpretty_with_other_tcp_protocols and not test_disallow_net_connect_1 and not test_recording_calls'] ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /usr/src/RPM/BUILD/httpretty-1.1.4 plugins: pytest_httpserver-1.1.0 collected 11154 items / 15 deselected / 11139 selected tests/bugfixes/nosetests/test_242_ssl_bad_handshake.py . [ 0%] tests/bugfixes/nosetests/test_387_regex_port.py FF [ 0%] tests/bugfixes/nosetests/test_388_unmocked_error_with_url.py F [ 0%] tests/bugfixes/nosetests/test_413_regex.py FF [ 0%] tests/bugfixes/nosetests/test_414_httpx.py . [ 0%] tests/bugfixes/nosetests/test_416_boto3.py F [ 0%] tests/bugfixes/nosetests/test_417_openssl.py .. [ 0%] tests/bugfixes/nosetests/test_425_latest_requests.py . [ 0%] tests/bugfixes/nosetests/test_430_respect_timeout.py F [ 0%] tests/bugfixes/nosetests/test_eventlet.py . [ 0%] tests/bugfixes/nosetests/test_redis.py s [ 0%] tests/bugfixes/nosetests/test_tornado_bind_unused_port.py s [ 0%] tests/bugfixes/pytest/test_426_mypy_segfault.py FFFFFFFFFFFFFFFFFFFFFFFF [ 0%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 0%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 1%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 2%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 2%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 3%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 4%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 4%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 5%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 7%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 8%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 8%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF................................ [ 9%] ........................................................................ [ 10%] ........................................................................ [ 10%] ........................................................................ [ 11%] ........................................................................ [ 11%] ........................................................................ [ 12%] ........................................................................ [ 13%] ........................................................................ [ 13%] ........................................................................ [ 14%] ........................................................................ [ 15%] ........................................................................ [ 15%] ........................................................................ [ 16%] ........................................................................ [ 17%] ........................................................................ [ 17%] ........................................................................ [ 18%] ........................................................................ [ 19%] ........................................................................ [ 19%] ........................................................................ [ 20%] ........................................................................ [ 21%] ........................................................................ [ 21%] ........................................................................ [ 22%] ........................................................................ [ 22%] ........................................................................ [ 23%] ........................................................................ [ 24%] ........................................................................ [ 24%] ........................................................................ [ 25%] ........................................................................ [ 26%] ........................................................................ [ 26%] ........................................................................ [ 27%] ........................................................................ [ 28%] ........................................................................ [ 28%] ........................................................................ [ 29%] ........................................................................ [ 30%] ........................................................................ [ 30%] ........................................................................ [ 31%] ........................................................................ [ 32%] ........................................................................ [ 32%] ........................................................................ [ 33%] ........................................................................ [ 33%] ........................................................................ [ 34%] ........................................................................ [ 35%] ........................................................................ [ 35%] ........................................................................ [ 36%] ........................................................................ [ 37%] ........................................................................ [ 37%] ........................................................................ [ 38%] ........................................................................ [ 39%] ........................................................................ [ 39%] ........................................................................ [ 40%] ........................................................................ [ 41%] ........................................................................ [ 41%] ........................................................................ [ 42%] ........................................................................ [ 43%] ........................................................................ [ 43%] ........................................................................ [ 44%] ........................................................................ [ 44%] ........................................................................ [ 45%] ........................................................................ [ 46%] ........................................................................ [ 46%] ........................................................................ [ 47%] ........................................................................ [ 48%] ........................................................................ [ 48%] ........................................................................ [ 49%] ........................................................................ [ 50%] ........................................................................ [ 50%] ........................................................................ [ 51%] ........................................................................ [ 52%] ........................................................................ [ 52%] ........................................................................ [ 53%] ........................................................................ [ 53%] ........................................................................ [ 54%] ........................................................................ [ 55%] ........................................................................ [ 55%] ........................................................................ [ 56%] ........................................................................ [ 57%] ........................................................................ [ 57%] ........................................................................ [ 58%] ........................................................................ [ 59%] ........................................................................ [ 59%] ........................................................................ [ 60%] ........................................................................ [ 61%] ........................................................................ [ 61%] ........................................................................ [ 62%] ........................................................................ [ 63%] ........................................................................ [ 63%] ........................................................................ [ 64%] ........................................................................ [ 64%] ........................................................................ [ 65%] ........................................................................ [ 66%] ........................................................................ [ 66%] ........................................................................ [ 67%] ........................................................................ [ 68%] ........................................................................ [ 68%] ........................................................................ [ 69%] ........................................................................ [ 70%] ........................................................................ [ 70%] ........................................................................ [ 71%] ........................................................................ [ 72%] ........................................................................ [ 72%] ........................................................................ [ 73%] ........................................................................ [ 74%] ........................................................................ [ 74%] ........................................................................ [ 75%] ........................................................................ [ 75%] ........................................................................ [ 76%] ........................................................................ [ 77%] ........................................................................ [ 77%] ........................................................................ [ 78%] ........................................................................ [ 79%] ........................................................................ [ 79%] ........................................................................ [ 80%] ........................................................................ [ 81%] ........................................................................ [ 81%] ........................................................................ [ 82%] ........................................................................ [ 83%] ........................................................................ [ 83%] ........................................................................ [ 84%] ........................................................................ [ 85%] ........................................................................ [ 85%] ........................................................................ [ 86%] ........................................................................ [ 86%] ........................................................................ [ 87%] ........................................................................ [ 88%] ........................................................................ [ 88%] ........................................................................ [ 89%] ........................................................................ [ 90%] ........................................................................ [ 90%] ........................................................................ [ 91%] ........................................................................ [ 92%] ........................................................................ [ 92%] ........................................................................ [ 93%] ........................................................................ [ 94%] ........................................................................ [ 94%] ........................................................................ [ 95%] ........................................................................ [ 96%] ........................................................................ [ 96%] ........................................................................ [ 97%] ........................................................................ [ 97%] ........................................................................ [ 98%] ................................ [ 98%] tests/functional/test_bypass.py .. [ 98%] tests/functional/test_decorator.py ...... [ 98%] tests/functional/test_httplib2.py ............ [ 99%] tests/functional/test_requests.py ................................. [ 99%] tests/functional/test_urllib2.py ........... [ 99%] tests/pyopenssl/test_mock.py . [ 99%] tests/unit/test_core.py .......................... [ 99%] tests/unit/test_http.py . [ 99%] tests/unit/test_httpretty.py ............................. [ 99%] tests/unit/test_main.py ... [100%] =================================== FAILURES =================================== _______________________ test_match_with_port_no_slashes ________________________ @httpretty.activate(allow_net_connect=False, verbose=True) def test_match_with_port_no_slashes(): "Reproduce #387 registering host:port without trailing slash" httpretty.register_uri(httpretty.GET, 'http://fakeuri.com:8080', body='{"hello":"world"}') > req = requests.get('http://fakeuri.com:8080', timeout=1) tests/bugfixes/nosetests/test_387_regex_port.py:11: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("fakeuri.com:8080"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________________ test_match_with_port_trailing_slash ______________________ @httpretty.activate(allow_net_connect=False, verbose=True) def test_match_with_port_trailing_slash(): "Reproduce #387 registering host:port with trailing slash" httpretty.register_uri(httpretty.GET, 'https://fakeuri.com:443/', body='{"hello":"world"}') > req = requests.get('https://fakeuri.com:443', timeout=1) tests/bugfixes/nosetests/test_387_regex_port.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("fakeuri.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________________________ test_https_forwarding _____________________________ @httpretty.activate(allow_net_connect=False) def test_https_forwarding(): "#388 UnmockedError is raised with details about the mismatched request" httpretty.register_uri(httpretty.GET, 'http://google.com/', body="Not Google") httpretty.register_uri(httpretty.GET, 'https://google.com/', body="Not Google") > response1 = http().get('http://google.com/') tests/bugfixes/nosetests/test_388_unmocked_error_with_url.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:602: in get return self.request("GET", url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("google.com:80"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError __________________________ test_works_with_regex_path __________________________ @httpretty.activate(verbose=True, allow_net_connect=False) def test_works_with_regex_path(): "Issue #413 regex with path" patmatchpat = re.compile("/file-one") httpretty.register_uri(httpretty.GET, patmatchpat, body=mock_body) > response = requests.get("https://example.com/file-one.html") tests/bugfixes/nosetests/test_413_regex.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("example.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _________________________ test_works_with_regex_dotall _________________________ @httpretty.activate(verbose=True, allow_net_connect=False) def test_works_with_regex_dotall(): "Issue #413 regex with .*" patmatchpat = re.compile(".*/file-two.*") httpretty.register_uri(httpretty.GET, patmatchpat, body=mock_body) > response = requests.get("https://example.com/file-two.html") tests/bugfixes/nosetests/test_413_regex.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("example.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError __________________________________ test_boto3 __________________________________ self = request = def send(self, request): try: proxy_url = self._proxy_config.proxy_url_for(request.url) manager = self._get_connection_manager(request.url, proxy_url) conn = manager.connection_from_url(request.url) self._setup_ssl_cert(conn, request.url, self._verify) if ensure_boolean( os.environ.get('BOTO_EXPERIMENTAL__ADD_PROXY_HOST_HEADER', '') ): # This is currently an "experimental" feature which provides # no guarantees of backwards compatibility. It may be subject # to change or removal in any patch version. Anyone opting in # to this feature should strictly pin botocore. host = urlparse(request.url).hostname conn.proxy_headers['host'] = host request_target = self._get_request_target(request.url, proxy_url) > urllib_response = conn.urlopen( method=request.method, url=request_target, body=request.body, headers=request.headers, retries=Retry(False), assert_same_host=False, preload_content=False, decode_content=False, chunked=self._chunked(request.headers), ) /usr/lib/python3/site-packages/botocore/httpsession.py:460: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("foo-bucket.s3.amazonaws.com:443") name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError During handling of the above exception, another exception occurred: self = exc = , msg = 'Access Denied' def raises(self, exc, msg=None): if not callable(self._src): raise TypeError('%r is not callable' % self._src) try: > self._src(*self._callable_args, **self._callable_kw) /usr/lib/python3/site-packages/sure/old.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/botocore/client.py:569: in _api_call return self._make_api_call(operation_name, kwargs) /usr/lib/python3/site-packages/botocore/client.py:1005: in _make_api_call http, parsed_response = self._make_request( /usr/lib/python3/site-packages/botocore/client.py:1029: in _make_request return self._endpoint.make_request(operation_model, request_dict) /usr/lib/python3/site-packages/botocore/endpoint.py:119: in make_request return self._send_request(request_dict, operation_model) /usr/lib/python3/site-packages/botocore/endpoint.py:200: in _send_request while self._needs_retry( /usr/lib/python3/site-packages/botocore/endpoint.py:360: in _needs_retry responses = self._event_emitter.emit( /usr/lib/python3/site-packages/botocore/hooks.py:412: in emit return self._emitter.emit(aliased_event_name, **kwargs) /usr/lib/python3/site-packages/botocore/hooks.py:256: in emit return self._emit(event_name, kwargs) /usr/lib/python3/site-packages/botocore/hooks.py:239: in _emit response = handler(**kwargs) /usr/lib/python3/site-packages/botocore/retryhandler.py:207: in __call__ if self._checker(**checker_kwargs): /usr/lib/python3/site-packages/botocore/retryhandler.py:284: in __call__ should_retry = self._should_retry( /usr/lib/python3/site-packages/botocore/retryhandler.py:307: in _should_retry return self._checker( /usr/lib/python3/site-packages/botocore/retryhandler.py:363: in __call__ checker_response = checker( /usr/lib/python3/site-packages/botocore/retryhandler.py:247: in __call__ return self._check_caught_exception( /usr/lib/python3/site-packages/botocore/retryhandler.py:416: in _check_caught_exception raise caught_exception /usr/lib/python3/site-packages/botocore/endpoint.py:279: in _do_get_response http_response = self._send(request) /usr/lib/python3/site-packages/botocore/endpoint.py:383: in _send return self.http_session.send(request) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = def send(self, request): try: proxy_url = self._proxy_config.proxy_url_for(request.url) manager = self._get_connection_manager(request.url, proxy_url) conn = manager.connection_from_url(request.url) self._setup_ssl_cert(conn, request.url, self._verify) if ensure_boolean( os.environ.get('BOTO_EXPERIMENTAL__ADD_PROXY_HOST_HEADER', '') ): # This is currently an "experimental" feature which provides # no guarantees of backwards compatibility. It may be subject # to change or removal in any patch version. Anyone opting in # to this feature should strictly pin botocore. host = urlparse(request.url).hostname conn.proxy_headers['host'] = host request_target = self._get_request_target(request.url, proxy_url) urllib_response = conn.urlopen( method=request.method, url=request_target, body=request.body, headers=request.headers, retries=Retry(False), assert_same_host=False, preload_content=False, decode_content=False, chunked=self._chunked(request.headers), ) http_response = botocore.awsrequest.AWSResponse( request.url, urllib_response.status, urllib_response.headers, urllib_response, ) if not request.stream_output: # Cause the raw stream to be exhausted immediately. We do it # this way instead of using preload_content because # preload_content will never buffer chunked responses http_response.content return http_response except URLLib3SSLError as e: raise SSLError(endpoint_url=request.url, error=e) except (NewConnectionError, socket.gaierror) as e: raise EndpointConnectionError(endpoint_url=request.url, error=e) except ProxyError as e: raise ProxyConnectionError( proxy_url=mask_proxy_url(proxy_url), error=e ) except URLLib3ConnectTimeoutError as e: raise ConnectTimeoutError(endpoint_url=request.url, error=e) except URLLib3ReadTimeoutError as e: raise ReadTimeoutError(endpoint_url=request.url, error=e) except ProtocolError as e: raise ConnectionClosedError( error=e, request=request, endpoint_url=request.url ) except Exception as e: message = 'Exception received when sending urllib3 HTTP request' logger.debug(message, exc_info=True) > raise HTTPClientError(error=e) E botocore.exceptions.HTTPClientError: An HTTP Client raised an unhandled exception: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. /usr/lib/python3/site-packages/botocore/httpsession.py:505: HTTPClientError During handling of the above exception, another exception occurred: self = args = (, 'Access Denied'), kw = {} @wraps(func) def wrapper(self, *args, **kw): try: > value = func(self, *args, **kw) /usr/lib/python3/site-packages/sure/__init__.py:407: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/sure/__init__.py:916: in throw return _that.raises(*args, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = , msg = 'Access Denied' def raises(self, exc, msg=None): if not callable(self._src): raise TypeError('%r is not callable' % self._src) try: self._src(*self._callable_args, **self._callable_kw) except BaseException as e: if isinstance(exc, string_types): msg = exc exc = type(e) elif isinstance(exc, Pattern): msg = exc exc = type(e) err = text_type(e) if isinstance(exc, type) and issubclass(exc, BaseException): if not isinstance(e, exc): > raise AssertionError( '%r should raise %r, but raised %r:\nORIGINAL EXCEPTION:\n\n%s' % ( self._src, exc, e.__class__, traceback.format_exc())) E AssertionError: ._api_call of > should raise , but raised : E ORIGINAL EXCEPTION: E E Traceback (most recent call last): E File "/usr/lib/python3/site-packages/botocore/httpsession.py", line 460, in send E urllib_response = conn.urlopen( E ^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 787, in urlopen E response = self._make_request( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 534, in _make_request E response = conn.getresponse() E ^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connection.py", line 513, in getresponse E _shutdown = getattr(self.sock, "shutdown", None) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/src/RPM/BUILD/httpretty-1.1.4/httpretty/core.py", line 894, in __getattr__ E raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "/usr/lib/python3/site-packages/sure/old.py", line 126, in raises E self._src(*self._callable_args, **self._callable_kw) E File "/usr/lib/python3/site-packages/botocore/client.py", line 569, in _api_call E return self._make_api_call(operation_name, kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/client.py", line 1005, in _make_api_call E http, parsed_response = self._make_request( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/client.py", line 1029, in _make_request E return self._endpoint.make_request(operation_model, request_dict) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 119, in make_request E return self._send_request(request_dict, operation_model) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 200, in _send_request E while self._needs_retry( E ^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 360, in _needs_retry E responses = self._event_emitter.emit( E ^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/hooks.py", line 412, in emit E return self._emitter.emit(aliased_event_name, **kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/hooks.py", line 256, in emit E return self._emit(event_name, kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/hooks.py", line 239, in _emit E response = handler(**kwargs) E ^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 207, in __call__ E if self._checker(**checker_kwargs): E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 284, in __call__ E should_retry = self._should_retry( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 307, in _should_retry E return self._checker( E ^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 363, in __call__ E checker_response = checker( E ^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 247, in __call__ E return self._check_caught_exception( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 416, in _check_caught_exception E raise caught_exception E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 279, in _do_get_response E http_response = self._send(request) E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 383, in _send E return self.http_session.send(request) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/httpsession.py", line 505, in send E raise HTTPClientError(error=e) E botocore.exceptions.HTTPClientError: An HTTP Client raised an unhandled exception: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. /usr/lib/python3/site-packages/sure/old.py:140: AssertionError During handling of the above exception, another exception occurred: @httpretty.activate(allow_net_connect=False, verbose=True) def test_boto3(): "#416 boto3 issue" httpretty.register_uri( httpretty.PUT, "https://foo-bucket.s3.amazonaws.com/foo-object", body=""" AccessDenied Access Denied foo foo """, status=403 ) session = boto3.Session(aws_access_key_id="foo", aws_secret_access_key="foo") s3_client = session.client('s3') put_object = expect(s3_client.put_object).when.called_with( Bucket="foo-bucket", Key="foo-object", Body=b"foo" ) > put_object.should.have.raised(ClientError, 'Access Denied') tests/bugfixes/nosetests/test_416_boto3.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = (, 'Access Denied'), kw = {} @wraps(func) def wrapper(self, *args, **kw): try: value = func(self, *args, **kw) except AssertionError as e: > raise AssertionError(e) E AssertionError: ._api_call of > should raise , but raised : E ORIGINAL EXCEPTION: E E Traceback (most recent call last): E File "/usr/lib/python3/site-packages/botocore/httpsession.py", line 460, in send E urllib_response = conn.urlopen( E ^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 787, in urlopen E response = self._make_request( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 534, in _make_request E response = conn.getresponse() E ^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connection.py", line 513, in getresponse E _shutdown = getattr(self.sock, "shutdown", None) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/src/RPM/BUILD/httpretty-1.1.4/httpretty/core.py", line 894, in __getattr__ E raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "/usr/lib/python3/site-packages/sure/old.py", line 126, in raises E self._src(*self._callable_args, **self._callable_kw) E File "/usr/lib/python3/site-packages/botocore/client.py", line 569, in _api_call E return self._make_api_call(operation_name, kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/client.py", line 1005, in _make_api_call E http, parsed_response = self._make_request( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/client.py", line 1029, in _make_request E return self._endpoint.make_request(operation_model, request_dict) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 119, in make_request E return self._send_request(request_dict, operation_model) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 200, in _send_request E while self._needs_retry( E ^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 360, in _needs_retry E responses = self._event_emitter.emit( E ^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/hooks.py", line 412, in emit E return self._emitter.emit(aliased_event_name, **kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/hooks.py", line 256, in emit E return self._emit(event_name, kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/hooks.py", line 239, in _emit E response = handler(**kwargs) E ^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 207, in __call__ E if self._checker(**checker_kwargs): E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 284, in __call__ E should_retry = self._should_retry( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 307, in _should_retry E return self._checker( E ^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 363, in __call__ E checker_response = checker( E ^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 247, in __call__ E return self._check_caught_exception( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/retryhandler.py", line 416, in _check_caught_exception E raise caught_exception E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 279, in _do_get_response E http_response = self._send(request) E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/endpoint.py", line 383, in _send E return self.http_session.send(request) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/botocore/httpsession.py", line 505, in send E raise HTTPClientError(error=e) E botocore.exceptions.HTTPClientError: An HTTP Client raised an unhandled exception: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. /usr/lib/python3/site-packages/sure/__init__.py:409: AssertionError ______________________________ test_read_timeout _______________________________ self = exc = , msg = None def raises(self, exc, msg=None): if not callable(self._src): raise TypeError('%r is not callable' % self._src) try: > self._src(*self._callable_args, **self._callable_kw) /usr/lib/python3/site-packages/sure/old.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:602: in get return self.request("GET", url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("example.com:80"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError During handling of the above exception, another exception occurred: self = args = (,), kw = {} @wraps(func) def wrapper(self, *args, **kw): try: > value = func(self, *args, **kw) /usr/lib/python3/site-packages/sure/__init__.py:407: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/sure/__init__.py:916: in throw return _that.raises(*args, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc = , msg = None def raises(self, exc, msg=None): if not callable(self._src): raise TypeError('%r is not callable' % self._src) try: self._src(*self._callable_args, **self._callable_kw) except BaseException as e: if isinstance(exc, string_types): msg = exc exc = type(e) elif isinstance(exc, Pattern): msg = exc exc = type(e) err = text_type(e) if isinstance(exc, type) and issubclass(exc, BaseException): if not isinstance(e, exc): > raise AssertionError( '%r should raise %r, but raised %r:\nORIGINAL EXCEPTION:\n\n%s' % ( self._src, exc, e.__class__, traceback.format_exc())) E AssertionError: > should raise , but raised : E ORIGINAL EXCEPTION: E E Traceback (most recent call last): E File "/usr/lib/python3/site-packages/sure/old.py", line 126, in raises E self._src(*self._callable_args, **self._callable_kw) E File "/usr/lib/python3/site-packages/requests/sessions.py", line 602, in get E return self.request("GET", url, **kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/requests/sessions.py", line 589, in request E resp = self.send(prep, **send_kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/requests/sessions.py", line 703, in send E r = adapter.send(request, **kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/requests/adapters.py", line 667, in send E resp = conn.urlopen( E ^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 787, in urlopen E response = self._make_request( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 534, in _make_request E response = conn.getresponse() E ^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connection.py", line 513, in getresponse E _shutdown = getattr(self.sock, "shutdown", None) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/src/RPM/BUILD/httpretty-1.1.4/httpretty/core.py", line 894, in __getattr__ E raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. /usr/lib/python3/site-packages/sure/old.py:140: AssertionError During handling of the above exception, another exception occurred: @httprettified(verbose=True, allow_net_connect=False) def test_read_timeout(): "#430 httpretty should respect read timeout" event = Event() uri = "http://example.com" # Given that I register a uri with a callback body that delays 10 seconds wait_seconds = 10 def my_callback(request, url, headers): event.wait(wait_seconds) return 200, headers, "Received" HTTPretty.register_uri(HTTPretty.GET, uri, body=my_callback) # And I use a thread pool with 1 TCP connection max max_connections = 1 request = http(max_connections) started_at = time.time() # When I make an HTTP request with a read timeout of 0.1 and an indefinite connect timeout when_called = request.get.when.called_with(uri, timeout=(None, 0.1)) # Then the request should have raised a connection timeout > when_called.should.have.raised(ReadTimeout) tests/bugfixes/nosetests/test_430_respect_timeout.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = (,), kw = {} @wraps(func) def wrapper(self, *args, **kw): try: value = func(self, *args, **kw) except AssertionError as e: > raise AssertionError(e) E AssertionError: > should raise , but raised : E ORIGINAL EXCEPTION: E E Traceback (most recent call last): E File "/usr/lib/python3/site-packages/sure/old.py", line 126, in raises E self._src(*self._callable_args, **self._callable_kw) E File "/usr/lib/python3/site-packages/requests/sessions.py", line 602, in get E return self.request("GET", url, **kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/requests/sessions.py", line 589, in request E resp = self.send(prep, **send_kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/requests/sessions.py", line 703, in send E r = adapter.send(request, **kwargs) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/requests/adapters.py", line 667, in send E resp = conn.urlopen( E ^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 787, in urlopen E response = self._make_request( E ^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connectionpool.py", line 534, in _make_request E response = conn.getresponse() E ^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/site-packages/urllib3/connection.py", line 513, in getresponse E _shutdown = getattr(self.sock, "shutdown", None) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/src/RPM/BUILD/httpretty-1.1.4/httpretty/core.py", line 894, in __getattr__ E raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. /usr/lib/python3/site-packages/sure/__init__.py:409: AssertionError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_0 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200d6c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_1 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200dc60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_10 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200c720> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_100 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200efc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_101 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200c180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_102 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200f7e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_103 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200fb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_104 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200f420> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_105 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_106 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb04a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_107 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb05e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_108 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb13a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_109 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb18a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_11 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb1c60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_110 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb2160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_111 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb1080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_112 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb2a20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_113 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb2de0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_114 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb3240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_115 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6120fc9a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_116 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6120fc360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_117 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6120fc9a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_118 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200f1a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_119 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200e020> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_12 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200fb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_120 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200fc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_121 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fdbce0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_122 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200ed40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_123 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab920> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_124 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eabf60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_125 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eabc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_126 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab420> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_127 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eaa840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_128 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_129 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea9f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_13 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab420> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_130 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea96c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_131 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_132 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea8d60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_133 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab420> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_134 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea8400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_135 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200c040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_136 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6120fc860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_137 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200f240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_138 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eaa200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_139 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61200f240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_14 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eabba0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_140 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eab920> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_141 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eaa160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_142 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea80e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_143 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea8540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_144 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea9f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_145 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613137b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_146 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6131372e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_147 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613135300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_148 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613137e20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_149 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613136b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_15 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6131372e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_150 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613134720> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_151 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613134ae0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_152 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_153 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb18a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_154 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb2fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_155 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613134720> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_156 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613136980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_157 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6120fc360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_158 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613135300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_159 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613136b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_16 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea8400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_160 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eaa340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_161 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea8180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_162 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eaa340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_163 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_164 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_165 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb3ec0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_166 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb3240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_167 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb3b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_168 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb3240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_169 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_17 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_170 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_171 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_172 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe5940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_173 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe5800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_174 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe6200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_175 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611eaab60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_176 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613136200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_177 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ea9940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_178 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_179 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb1da0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_18 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb2fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_180 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb1da0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_181 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe5940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_182 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe6e80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_183 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_184 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe40e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_185 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe6020> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_186 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_187 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_188 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_189 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7060> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_19 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_190 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca0b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_191 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca07c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_192 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca0360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_193 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca0fe0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_194 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca1940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_195 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca1f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_196 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_197 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613137d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_198 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611cb0540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_199 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4ae0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_2 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_20 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_200 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe5d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_201 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_202 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca02c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_203 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca0f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_204 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_205 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2520> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_206 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca1300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_207 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_208 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca1580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_209 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca3880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_21 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_210 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca36a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_211 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca3c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_212 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d34220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_213 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d344a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_214 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d34b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_215 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d34680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_216 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d35bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_217 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d34e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_218 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_219 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d356c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_22 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_220 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d35f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_221 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d37600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_222 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_223 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d37740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_224 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_225 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0c540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_226 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0c220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_227 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0c9a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_228 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0c0e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_229 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0d940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_23 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0cb80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_230 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0e200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_231 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0d440> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_232 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0eac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_233 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0dd00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_234 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0f380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_235 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0e5c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_236 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0fc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_237 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0e7a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_238 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a84400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_239 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a84180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_24 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a84860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_240 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a84040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_241 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a856c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_242 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a84e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_243 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a85f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_244 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a851c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_245 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a86840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_246 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a85a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_247 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a87100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_248 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a86340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_249 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a879c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_25 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a86c00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_250 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afc400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_251 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a87f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_252 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afc0e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_253 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afc5e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_254 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afccc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_255 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afc7c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_256 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afdd00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_257 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afcf40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_258 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afe5c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_259 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afd800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_26 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afee80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_260 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afe0c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_261 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611aff740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_262 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afe980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_263 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afff60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_264 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afe2a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_265 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffc0e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_266 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffc7c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_267 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffca40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_268 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffc540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_269 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffda80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_27 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffccc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_270 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffe340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_271 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffd580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_272 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffec00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_273 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffde40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_274 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fff4c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_275 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffe700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_276 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fffd80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_277 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffe8e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_278 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_279 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc40e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_28 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_280 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_281 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc5800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_282 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_283 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc60c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_284 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc5300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_285 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_286 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc5bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_287 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc7240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_288 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_289 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc7b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_29 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_290 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305c540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_291 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_292 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305cb80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_293 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305c180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_294 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305d580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_295 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305d1c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_296 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305de40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_297 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305d080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_298 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305e700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_299 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305d940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_3 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305efc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_30 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305e200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_300 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305f880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_301 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305eac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_302 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305f6a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_303 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305fc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_304 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_305 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f804a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_306 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_307 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_308 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f81bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_309 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_31 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f82480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_310 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f816c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_311 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f82d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_312 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f81f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_313 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f83600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_314 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f82840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_315 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f83740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_316 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f82160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_317 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f200e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_318 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f20680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_319 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f20900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_32 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f83ba0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_320 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f839c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_321 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f825c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_322 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_323 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f800e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_324 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_325 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f80180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_326 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305e700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_327 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305f6a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_328 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305f880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_329 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305c540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_33 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305c680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_330 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305c540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_331 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6020> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_332 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc74c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_333 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_334 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_335 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc7e20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_336 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_337 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffe2a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_338 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fffd80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_339 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fff600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_34 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305ccc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_340 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305e660> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_341 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305c4a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_342 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f82a20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_343 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305e480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_344 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_345 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc5580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_346 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffce00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_347 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc5580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_348 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffc4a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_349 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fff4c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_35 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afde40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_350 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fff4c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_351 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afec00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_352 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afc680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_353 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611affe20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_354 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afefc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_355 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a87b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_356 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afcea0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_357 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a85800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_358 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a847c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_359 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a87240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_36 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc6020> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_360 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f82a20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_361 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fc4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_362 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612fff240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_363 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffdd00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_364 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afdb20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_365 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61305e660> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_366 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a860c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_367 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afc720> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_368 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a845e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_369 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a84400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_37 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0fa60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_370 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afff60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_371 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0ed40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_372 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0e160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_373 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0c360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_374 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0f920> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_375 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d379c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_376 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0f920> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_377 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d359e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_378 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_379 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d37740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_38 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0d620> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_380 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0fa60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_381 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f81120> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_382 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0eac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_383 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffd800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_384 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a86840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_385 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612ffd800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_386 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_387 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a845e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_388 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d37380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_389 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d345e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_39 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_390 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d345e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_391 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe76a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_392 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe4680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_393 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca1620> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_394 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_395 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_396 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca3600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_397 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f20720> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_398 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe6020> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_399 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f20400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_4 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_40 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca0ae0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_400 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_401 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca1620> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_402 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611afe840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_403 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611a0fa60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_404 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_405 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_406 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d342c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_407 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f216c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_408 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f21e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_409 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f218a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_41 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f21300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_410 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f22700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_411 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f22d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_412 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f22fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_413 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_414 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_415 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f237e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_416 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_417 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f236a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_418 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_419 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_42 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36ca0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_420 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611ca2d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_421 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611d36700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_422 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23420> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_423 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f21f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_424 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f22160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_425 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_426 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f20860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_427 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f225c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_428 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_429 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a00e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_43 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a1260> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_430 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_431 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a20c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_432 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_433 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_434 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a1bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_435 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a3240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_436 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_437 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a3b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_438 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_439 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613024540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_44 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_440 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613024b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_441 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613024180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_442 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_443 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6130251c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_444 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_445 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_446 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_447 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_448 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_449 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_45 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613027880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_450 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_451 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6130276a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_452 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613027c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_453 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611974220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_454 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119744a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_455 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611974b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_456 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611974680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_457 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611975bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_458 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611974e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_459 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611976480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_46 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119756c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_460 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611976d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_461 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611975f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_462 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611977600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_463 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611976840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_464 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611977740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_465 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611976160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_466 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_467 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_468 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118949a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_469 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118940e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_47 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611895940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_470 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_471 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611896200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_472 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611895440> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_473 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611896ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_474 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611895d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_475 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611897380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_476 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118965c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_477 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611897c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_478 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118967a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_479 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bc400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_48 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bc180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_480 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bc860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_481 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bc040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_482 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bd6c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_483 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bce00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_484 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bdf80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_485 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bd1c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_486 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118be840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_487 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bda80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_488 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bf100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_489 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118be340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_49 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bf9c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_490 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bec00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_491 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e4400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_492 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bff60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_493 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e40e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_494 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e45e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_495 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e4cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_496 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e47c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_497 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e5d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_498 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e4f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_499 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e65c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_5 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e5800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_50 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e6e80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_500 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e60c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_501 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e7740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_502 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e6980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_503 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e7f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_504 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e62a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_505 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e600e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_506 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e607c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_507 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e60a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_508 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e60540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_509 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e61a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_51 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e60cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_510 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e62340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_511 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e61580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_512 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e62c00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_513 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e61e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_514 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e634c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_515 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e62700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_516 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e63d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_517 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e628e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_518 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e74400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_519 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e740e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_52 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e74860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_520 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e74220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_521 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_522 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e74a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_523 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e760c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_524 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_525 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e76980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_526 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_527 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e77240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_528 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e76480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_529 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e77b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_53 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e76d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_530 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e30540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_531 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e76f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_532 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e30b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_533 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e30180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_534 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e31580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_535 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e311c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_536 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e31e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_537 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e31080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_538 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e32700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_539 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e31940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_54 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e32fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_540 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e32200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_541 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e33880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_542 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e32ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_543 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e336a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_544 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e33c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_545 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612418220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_546 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124184a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_547 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612418b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_548 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612418680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_549 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612419bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_55 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612418e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_550 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241a480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_551 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e33ba0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_552 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e336a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_553 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e32520> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_554 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e31bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_555 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e302c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_556 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e30540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_557 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e30360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_558 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75ee0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_559 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75da0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_56 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e77060> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_560 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e74540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_561 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e76200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_562 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e74540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_563 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e62160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_564 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e634c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_565 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e63740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_566 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e60900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_567 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e62b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_568 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e60900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_569 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e63e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_57 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e7f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_570 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e59e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_571 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_572 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e75940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_573 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e77380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_574 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e30400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_575 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e77b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_576 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e61300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_577 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e63600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_578 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e4400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_579 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e63600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_58 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e5080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_580 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_581 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bf060> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_582 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_583 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bdf80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_584 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bc900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_585 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bfb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_586 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bf380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_587 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_588 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bf380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_589 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118958a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_59 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118949a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_590 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611897920> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_591 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bfb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_592 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bca40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_593 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bc0e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_594 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e5c60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_595 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118bfa60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_596 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e7d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_597 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e4180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_598 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611896480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_599 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e33e20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_6 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_60 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_600 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611976ca0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_601 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e32d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_602 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119765c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_603 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119762a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_604 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611974540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_605 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611977740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_606 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6130276a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_607 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611977740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_608 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6130256c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_609 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_61 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_610 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119751c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_611 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119749a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_612 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611975580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_613 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e5d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_614 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6119742c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_615 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118958a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_616 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e61300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_617 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611894fe0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_618 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611896a20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_619 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_62 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613027ec0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_620 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6130276a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_621 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613027ec0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_622 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f21940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_623 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f20cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_624 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a1120> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_625 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a28e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_626 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_627 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a3240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_628 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_629 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a1800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_63 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241ab60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_630 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_631 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a28e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_632 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a0360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_633 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_634 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118958a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_635 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126e5d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_636 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611fe6700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_637 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_638 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613025bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_639 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241ade0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_64 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6118958a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_640 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124198a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_641 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241a520> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_642 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124182c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_643 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612418f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_644 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241b4c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_645 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241bb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_646 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241bd80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_647 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241b420> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_648 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_649 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_65 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_650 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54ea0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_651 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd613026700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_652 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_653 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611897ec0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_654 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241bb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_655 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241b880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_656 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241b380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_657 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241b920> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_658 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612418540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_659 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241afc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_66 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_660 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_661 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e55e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_662 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e554e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_663 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e565c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_664 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_665 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e56e80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_666 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e560c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_667 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e57740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_668 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e56980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_669 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e57f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_67 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e562a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_670 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124640e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_671 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124647c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_672 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612464a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_673 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612464540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_674 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612465a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_675 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612464cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_676 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612466340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_677 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612465580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_678 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612466c00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_679 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612465e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_68 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124674c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_680 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612466700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_681 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612467d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_682 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124668e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_683 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d4400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_684 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d40e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_685 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_686 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d4220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_687 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d5800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_688 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d4a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_689 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d60c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_69 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d5300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_690 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d6980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_691 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d5bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_692 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d7240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_693 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d6480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_694 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d7b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_695 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d6d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_696 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b0540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_697 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d6f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_698 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b0b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_699 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b0180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_7 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b1580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_70 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b11c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_700 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b1e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_701 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b1080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_702 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_703 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b1940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_704 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2fc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_705 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_706 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b3880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_707 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_708 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b36a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_709 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b3c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_71 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d8220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_710 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d84a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_711 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d8b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_712 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d8680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_713 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d9bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_714 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d8e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_715 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125da480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_716 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d96c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_717 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125dad40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_718 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d9f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_719 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125db600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_72 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125da840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_720 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125db740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_721 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125da160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_722 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612600540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_723 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612600220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_724 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126009a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_725 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126000e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_726 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_727 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612600b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_728 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612602200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_729 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601440> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_73 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612602ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_730 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_731 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612603380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_732 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126025c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_733 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612603c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_734 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126027a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_735 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_736 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_737 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_738 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_739 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a56c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_74 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_740 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a5f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_741 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a51c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_742 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_743 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a5a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_744 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a7100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_745 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_746 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a79c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_747 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6c00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_748 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_749 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a7f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_75 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6115480e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_750 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6115485e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_751 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_752 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6115487c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_753 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611549d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_754 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_755 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154a5c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_756 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611549800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_757 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154ae80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_758 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154a0c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_759 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154b740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_76 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154a980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_760 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154bf60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_761 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154a2a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_762 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c340e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_763 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c347c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_764 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c34a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_765 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c34540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_766 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c35a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_767 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c34cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_768 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c36340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_769 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c35580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_77 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c36c00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_770 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c35e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_771 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c374c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_772 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c36700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_773 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c37d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_774 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c368e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_775 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6c400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_776 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6c0e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_777 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6c860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_778 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6c220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_779 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6d800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_78 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6ca40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_780 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6e0c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_781 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6d300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_782 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6e980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_783 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6dbc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_784 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6f240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_785 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6e480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_786 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6fb00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_787 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6ed40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_788 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612204540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_789 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6f380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_79 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6e660> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_790 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6e7a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_791 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6de40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_792 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6c360> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_793 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6c400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_794 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6cb80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_795 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c36160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_796 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c37880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_797 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c37740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_798 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c34900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_799 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c36b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_8 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c34900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_80 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154a3e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_800 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154bf60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_801 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6115499e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_802 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548720> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_803 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_804 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154b100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_805 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_806 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a60c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_807 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a7b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_808 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c34040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_809 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c362a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_81 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c37d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_810 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6f600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_811 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6efc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_812 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6115480e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_813 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_814 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6660> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_815 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611548400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_816 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a40e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_817 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_818 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612603ec0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_819 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a4900> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_82 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_820 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612600860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_821 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612603c40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_822 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6126039c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_823 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125db880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_824 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612602ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_825 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d9d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_826 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d89a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_827 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125dbba0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_828 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6115499e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_829 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c36d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_83 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61154afc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_830 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6ac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_831 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a5620> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_832 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_833 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c6e0c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_834 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d87c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_835 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612602160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_836 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d8180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_837 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d9580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_838 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b3880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_839 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125db880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_84 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_840 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b0a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_841 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_842 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_843 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d7380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_844 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b1da0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_845 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d6340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_846 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d5e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_847 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d6f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_848 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b05e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_849 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b2840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_85 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b07c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_850 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_851 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612603a60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_852 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125d8b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_853 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c340e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_854 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d49a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_855 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125daca0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_856 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d7060> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_857 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d5e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_858 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612466b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_859 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611c340e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_86 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612467240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_860 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612467740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_861 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612467b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_862 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124660c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_863 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611f23e20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_864 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124660c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_865 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612419440> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_866 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61241a840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_867 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e56ca0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_868 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612419580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_869 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612464c20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_87 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612419580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_870 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124674c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_871 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6153a2f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_872 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612601a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_873 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125dbc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_874 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d5760> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_875 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d49a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_876 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_877 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d7e20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_878 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54c20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_879 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_88 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e55620> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_880 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_881 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122047c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_882 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122045e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_883 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122040e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_884 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612205120> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_885 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612205a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_886 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122060c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_887 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612206340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_888 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612206980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_889 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6123d4d60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_89 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6125a6660> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_890 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612466160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_891 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54c20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_892 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122b3600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_893 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e563e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_894 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd611e54400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_895 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612206b60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_896 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612205a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_897 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612205080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_898 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612205120> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_899 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612206f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_9 ______________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612204c20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_90 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122079c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_900 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122059e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_901 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c4400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_902 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612207f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_903 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c40e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_904 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c45e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_905 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c4cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_906 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c47c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_907 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c5d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_908 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c4f40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_909 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c65c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_91 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c5800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_910 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c6e80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_911 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c60c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_912 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c7740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_913 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c6980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_914 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c7f60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_915 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6150c62a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_916 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122240e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_917 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122247c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_918 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612224a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_919 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612224540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_92 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612225a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_920 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612224cc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_921 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612226340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_922 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612225580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_923 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612226c00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_924 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612225e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_925 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122274c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_926 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612226700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_927 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612227d80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_928 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122268e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_929 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612250400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_93 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122500e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_930 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612250860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_931 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612250220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_932 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612251800> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_933 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612250a40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_934 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6122520c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_935 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612251300> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_936 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612252980> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_937 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612251bc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_938 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612253240> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_939 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612252480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_94 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612253b00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_940 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612252d40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_941 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c8540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_942 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd612252f20> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_943 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c8b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_944 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c8180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_945 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c9580> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_946 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c91c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_947 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c9e40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_948 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c9080> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_949 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121ca700> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_95 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121c9940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_950 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121cafc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_951 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121ca200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_952 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121cb880> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_953 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121caac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_954 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121cb6a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_955 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6121cbc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_956 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250c220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_957 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250c4a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_958 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250cb80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_959 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250c680> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_96 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250dbc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_960 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250ce00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_961 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250e480> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_962 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250d6c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_963 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250ed40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_964 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250df80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_965 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250f600> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_966 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250e840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_967 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250f740> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_968 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd61250e160> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_969 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e8540> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_97 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e8220> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_970 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e89a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_971 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e80e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_972 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e9940> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_973 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e8b80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_974 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124ea200> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_975 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e9440> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_976 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124eaac0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_977 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124e9d00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_978 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124eb380> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_979 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124ea5c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_98 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124ebc40> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_980 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6124ea7a0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_981 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b8400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_982 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b8180> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_983 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b8860> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_984 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b8040> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_985 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b96c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_986 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b8e00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_987 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b9f80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_988 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b91c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_989 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117ba840> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError _____________ TestBug426MypySegfaultWithCallbackAndPayload.test_99 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117b9a80> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_990 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117bb100> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_991 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117ba340> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_992 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117bb9c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_993 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117bac00> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_994 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117ec400> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_995 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117bbf60> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_996 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117ec0e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_997 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117ec5e0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_998 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117eccc0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError ____________ TestBug426MypySegfaultWithCallbackAndPayload.test_999 _____________ self = args = (), kwargs = {} run_test = .test_func at 0x7fd6117ec7c0> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to allow unregistered requests through a real TCP connection in addition to (verbose=True) to debug the issue. httpretty/core.py:894: UnmockedError =============================== warnings summary =============================== tests/bugfixes/nosetests/test_242_ssl_bad_handshake.py: 2 warnings tests/bugfixes/nosetests/test_414_httpx.py: 1 warning tests/bugfixes/nosetests/test_416_boto3.py: 1 warning tests/bugfixes/nosetests/test_425_latest_requests.py: 4 warnings tests/bugfixes/nosetests/test_eventlet.py: 1 warning tests/functional/test_bypass.py: 1 warning tests/functional/test_decorator.py: 8 warnings tests/functional/test_httplib2.py: 12 warnings tests/functional/test_requests.py: 51 warnings tests/functional/test_urllib2.py: 11 warnings tests/pyopenssl/test_mock.py: 1 warning tests/unit/test_httpretty.py: 2 warnings /usr/src/RPM/BUILD/httpretty-1.1.4/httpretty/core.py:1077: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = datetime.utcnow() tests/bugfixes/nosetests/test_416_boto3.py::test_boto3 /usr/lib/python3/site-packages/botocore/auth.py:424: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). datetime_now = datetime.datetime.utcnow() tests/functional/test_httplib2.py: 8 warnings tests/functional/test_requests.py: 13 warnings tests/functional/test_urllib2.py: 7 warnings /usr/lib/python3/site-packages/sure/__init__.py:193: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). start = datetime.utcnow() tests/functional/test_httplib2.py: 8 warnings tests/functional/test_requests.py: 13 warnings tests/functional/test_urllib2.py: 7 warnings /usr/lib/python3/site-packages/sure/__init__.py:212: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). end = datetime.utcnow() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/bugfixes/nosetests/test_387_regex_port.py::test_match_with_port_no_slashes FAILED tests/bugfixes/nosetests/test_387_regex_port.py::test_match_with_port_trailing_slash FAILED tests/bugfixes/nosetests/test_388_unmocked_error_with_url.py::test_https_forwarding FAILED tests/bugfixes/nosetests/test_413_regex.py::test_works_with_regex_path FAILED tests/bugfixes/nosetests/test_413_regex.py::test_works_with_regex_dotall FAILED tests/bugfixes/nosetests/test_416_boto3.py::test_boto3 - AssertionErro... FAILED tests/bugfixes/nosetests/test_430_respect_timeout.py::test_read_timeout FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_0 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_1 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_10 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_100 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_101 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_102 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_103 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_104 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_105 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_106 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_107 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_108 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_109 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_11 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_110 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_111 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_112 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_113 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_114 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_115 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_116 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_117 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_118 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_119 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_12 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_120 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_121 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_122 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_123 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_124 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_125 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_126 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_127 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_128 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_129 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_13 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_130 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_131 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_132 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_133 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_134 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_135 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_136 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_137 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_138 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_139 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_14 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_140 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_141 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_142 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_143 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_144 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_145 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_146 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_147 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_148 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_149 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_15 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_150 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_151 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_152 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_153 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_154 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_155 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_156 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_157 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_158 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_159 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_16 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_160 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_161 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_162 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_163 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_164 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_165 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_166 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_167 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_168 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_169 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_17 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_170 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_171 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_172 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_173 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_174 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_175 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_176 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_177 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_178 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_179 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_18 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_180 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_181 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_182 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_183 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_184 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_185 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_186 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_187 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_188 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_189 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_19 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_190 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_191 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_192 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_193 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_194 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_195 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_196 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_197 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_198 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_199 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_2 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_20 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_200 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_201 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_202 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_203 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_204 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_205 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_206 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_207 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_208 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_209 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_21 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_210 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_211 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_212 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_213 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_214 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_215 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_216 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_217 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_218 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_219 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_22 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_220 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_221 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_222 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_223 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_224 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_225 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_226 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_227 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_228 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_229 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_23 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_230 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_231 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_232 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_233 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_234 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_235 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_236 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_237 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_238 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_239 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_24 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_240 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_241 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_242 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_243 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_244 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_245 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_246 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_247 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_248 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_249 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_25 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_250 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_251 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_252 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_253 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_254 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_255 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_256 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_257 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_258 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_259 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_26 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_260 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_261 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_262 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_263 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_264 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_265 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_266 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_267 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_268 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_269 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_27 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_270 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_271 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_272 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_273 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_274 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_275 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_276 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_277 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_278 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_279 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_28 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_280 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_281 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_282 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_283 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_284 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_285 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_286 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_287 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_288 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_289 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_29 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_290 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_291 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_292 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_293 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_294 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_295 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_296 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_297 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_298 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_299 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_3 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_30 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_300 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_301 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_302 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_303 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_304 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_305 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_306 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_307 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_308 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_309 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_31 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_310 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_311 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_312 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_313 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_314 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_315 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_316 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_317 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_318 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_319 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_32 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_320 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_321 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_322 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_323 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_324 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_325 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_326 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_327 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_328 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_329 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_33 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_330 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_331 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_332 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_333 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_334 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_335 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_336 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_337 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_338 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_339 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_34 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_340 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_341 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_342 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_343 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_344 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_345 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_346 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_347 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_348 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_349 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_35 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_350 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_351 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_352 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_353 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_354 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_355 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_356 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_357 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_358 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_359 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_36 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_360 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_361 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_362 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_363 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_364 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_365 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_366 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_367 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_368 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_369 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_37 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_370 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_371 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_372 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_373 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_374 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_375 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_376 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_377 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_378 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_379 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_38 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_380 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_381 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_382 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_383 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_384 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_385 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_386 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_387 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_388 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_389 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_39 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_390 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_391 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_392 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_393 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_394 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_395 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_396 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_397 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_398 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_399 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_4 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_40 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_400 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_401 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_402 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_403 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_404 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_405 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_406 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_407 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_408 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_409 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_41 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_410 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_411 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_412 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_413 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_414 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_415 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_416 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_417 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_418 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_419 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_42 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_420 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_421 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_422 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_423 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_424 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_425 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_426 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_427 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_428 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_429 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_43 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_430 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_431 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_432 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_433 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_434 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_435 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_436 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_437 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_438 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_439 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_44 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_440 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_441 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_442 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_443 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_444 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_445 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_446 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_447 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_448 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_449 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_45 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_450 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_451 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_452 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_453 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_454 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_455 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_456 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_457 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_458 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_459 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_46 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_460 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_461 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_462 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_463 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_464 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_465 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_466 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_467 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_468 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_469 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_47 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_470 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_471 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_472 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_473 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_474 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_475 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_476 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_477 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_478 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_479 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_48 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_480 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_481 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_482 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_483 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_484 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_485 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_486 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_487 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_488 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_489 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_49 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_490 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_491 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_492 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_493 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_494 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_495 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_496 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_497 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_498 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_499 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_5 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_50 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_500 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_501 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_502 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_503 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_504 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_505 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_506 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_507 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_508 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_509 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_51 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_510 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_511 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_512 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_513 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_514 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_515 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_516 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_517 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_518 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_519 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_52 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_520 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_521 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_522 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_523 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_524 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_525 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_526 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_527 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_528 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_529 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_53 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_530 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_531 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_532 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_533 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_534 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_535 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_536 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_537 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_538 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_539 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_54 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_540 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_541 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_542 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_543 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_544 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_545 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_546 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_547 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_548 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_549 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_55 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_550 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_551 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_552 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_553 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_554 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_555 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_556 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_557 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_558 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_559 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_56 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_560 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_561 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_562 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_563 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_564 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_565 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_566 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_567 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_568 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_569 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_57 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_570 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_571 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_572 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_573 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_574 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_575 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_576 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_577 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_578 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_579 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_58 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_580 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_581 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_582 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_583 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_584 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_585 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_586 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_587 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_588 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_589 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_59 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_590 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_591 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_592 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_593 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_594 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_595 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_596 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_597 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_598 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_599 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_6 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_60 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_600 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_601 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_602 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_603 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_604 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_605 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_606 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_607 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_608 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_609 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_61 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_610 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_611 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_612 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_613 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_614 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_615 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_616 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_617 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_618 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_619 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_62 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_620 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_621 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_622 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_623 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_624 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_625 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_626 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_627 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_628 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_629 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_63 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_630 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_631 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_632 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_633 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_634 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_635 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_636 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_637 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_638 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_639 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_64 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_640 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_641 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_642 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_643 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_644 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_645 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_646 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_647 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_648 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_649 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_65 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_650 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_651 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_652 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_653 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_654 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_655 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_656 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_657 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_658 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_659 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_66 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_660 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_661 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_662 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_663 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_664 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_665 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_666 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_667 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_668 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_669 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_67 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_670 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_671 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_672 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_673 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_674 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_675 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_676 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_677 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_678 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_679 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_68 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_680 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_681 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_682 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_683 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_684 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_685 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_686 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_687 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_688 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_689 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_69 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_690 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_691 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_692 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_693 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_694 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_695 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_696 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_697 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_698 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_699 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_7 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_70 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_700 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_701 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_702 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_703 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_704 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_705 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_706 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_707 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_708 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_709 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_71 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_710 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_711 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_712 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_713 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_714 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_715 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_716 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_717 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_718 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_719 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_72 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_720 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_721 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_722 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_723 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_724 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_725 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_726 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_727 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_728 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_729 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_73 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_730 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_731 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_732 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_733 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_734 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_735 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_736 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_737 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_738 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_739 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_74 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_740 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_741 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_742 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_743 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_744 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_745 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_746 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_747 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_748 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_749 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_75 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_750 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_751 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_752 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_753 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_754 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_755 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_756 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_757 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_758 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_759 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_76 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_760 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_761 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_762 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_763 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_764 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_765 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_766 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_767 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_768 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_769 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_77 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_770 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_771 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_772 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_773 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_774 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_775 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_776 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_777 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_778 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_779 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_78 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_780 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_781 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_782 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_783 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_784 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_785 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_786 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_787 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_788 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_789 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_79 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_790 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_791 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_792 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_793 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_794 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_795 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_796 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_797 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_798 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_799 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_8 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_80 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_800 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_801 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_802 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_803 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_804 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_805 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_806 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_807 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_808 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_809 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_81 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_810 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_811 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_812 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_813 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_814 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_815 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_816 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_817 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_818 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_819 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_82 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_820 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_821 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_822 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_823 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_824 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_825 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_826 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_827 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_828 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_829 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_83 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_830 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_831 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_832 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_833 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_834 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_835 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_836 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_837 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_838 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_839 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_84 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_840 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_841 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_842 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_843 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_844 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_845 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_846 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_847 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_848 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_849 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_85 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_850 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_851 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_852 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_853 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_854 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_855 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_856 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_857 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_858 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_859 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_86 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_860 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_861 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_862 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_863 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_864 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_865 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_866 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_867 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_868 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_869 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_87 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_870 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_871 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_872 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_873 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_874 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_875 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_876 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_877 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_878 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_879 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_88 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_880 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_881 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_882 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_883 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_884 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_885 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_886 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_887 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_888 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_889 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_89 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_890 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_891 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_892 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_893 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_894 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_895 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_896 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_897 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_898 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_899 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_9 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_90 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_900 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_901 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_902 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_903 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_904 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_905 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_906 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_907 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_908 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_909 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_91 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_910 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_911 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_912 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_913 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_914 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_915 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_916 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_917 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_918 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_919 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_92 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_920 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_921 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_922 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_923 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_924 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_925 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_926 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_927 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_928 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_929 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_93 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_930 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_931 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_932 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_933 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_934 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_935 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_936 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_937 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_938 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_939 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_94 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_940 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_941 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_942 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_943 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_944 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_945 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_946 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_947 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_948 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_949 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_95 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_950 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_951 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_952 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_953 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_954 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_955 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_956 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_957 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_958 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_959 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_96 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_960 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_961 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_962 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_963 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_964 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_965 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_966 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_967 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_968 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_969 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_97 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_970 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_971 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_972 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_973 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_974 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_975 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_976 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_977 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_978 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_979 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_98 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_980 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_981 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_982 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_983 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_984 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_985 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_986 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_987 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_988 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_989 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_99 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_990 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_991 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_992 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_993 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_994 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_995 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_996 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_997 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_998 FAILED tests/bugfixes/pytest/test_426_mypy_segfault.py::TestBug426MypySegfaultWithCallbackAndPayload::test_999 = 1007 failed, 10130 passed, 2 skipped, 15 deselected, 152 warnings in 103.23s (0:01:43) = INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-k', 'not test_http_passthrough and not test_https_passthrough and not test_httpretty_should_allow_forcing_headers_urllib2 and not test_debug and not test_httpretty_should_allow_registering_regexes_with_streaming_responses and not test_httpretty_should_handle_paths_starting_with_two_slashes and not test_httpretty_bypasses_when_disabled and not test_httpretty_bypasses_a_unregistered_request and not test_using_httpretty_with_other_tcp_protocols and not test_disallow_net_connect_1 and not test_recording_calls']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.48607 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.48607 (%check) Command exited with non-zero status 1 103.49user 2.15system 1:45.61elapsed 100%CPU (0avgtext+0avgdata 170704maxresident)k 0inputs+0outputs (0major+141086minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-httpretty-1.1.4-alt2.src.rpm' failed. Command exited with non-zero status 1 7.51user 3.04system 2:09.16elapsed 8%CPU (0avgtext+0avgdata 136812maxresident)k 16280inputs+0outputs (0major+354744minor)pagefaults 0swaps