<86>Jan 4 10:34:32 userdel[1627809]: delete user 'rooter' <86>Jan 4 10:34:32 userdel[1627809]: removed group 'rooter' owned by 'rooter' <86>Jan 4 10:34:32 userdel[1627809]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 4 10:34:32 groupadd[1627816]: group added to /etc/group: name=rooter, GID=1217 <86>Jan 4 10:34:32 groupadd[1627816]: group added to /etc/gshadow: name=rooter <86>Jan 4 10:34:32 groupadd[1627816]: new group: name=rooter, GID=1217 <86>Jan 4 10:34:32 useradd[1627824]: new user: name=rooter, UID=1217, GID=1217, home=/root, shell=/bin/bash, from=none <86>Jan 4 10:34:32 userdel[1627848]: delete user 'builder' <86>Jan 4 10:34:32 userdel[1627848]: removed group 'builder' owned by 'builder' <86>Jan 4 10:34:32 userdel[1627848]: removed shadow group 'builder' owned by 'builder' <86>Jan 4 10:34:32 groupadd[1627866]: group added to /etc/group: name=builder, GID=1218 <86>Jan 4 10:34:32 groupadd[1627866]: group added to /etc/gshadow: name=builder <86>Jan 4 10:34:32 groupadd[1627866]: new group: name=builder, GID=1218 <86>Jan 4 10:34:32 useradd[1627877]: new user: name=builder, UID=1218, GID=1218, home=/usr/src, shell=/bin/bash, from=none <13>Jan 4 10:34:38 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Jan 4 10:34:38 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468406 installed <13>Jan 4 10:34:38 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700247 installed <13>Jan 4 10:34:38 rpmi: openssl-config-3.1.1-alt1 sisyphus+366628.500.5.1 1735237131 installed <13>Jan 4 10:34:38 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Jan 4 10:34:38 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622586 installed <13>Jan 4 10:34:38 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802618 installed <13>Jan 4 10:34:38 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 4 10:34:38 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 4 10:34:38 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Jan 4 10:34:38 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Jan 4 10:34:38 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622586 installed <13>Jan 4 10:34:39 rpmi: libcrypto3-3.1.7-alt3 sisyphus+366628.200.2.1 1735232541 installed <13>Jan 4 10:34:39 rpmi: libssl3-3.1.7-alt3 sisyphus+366628.200.2.1 1735232541 installed <13>Jan 4 10:34:39 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Jan 4 10:34:40 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Jan 4 10:34:40 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Jan 4 10:34:40 rpmi: tests-for-installed-python3-pkgs-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Jan 4 10:34:40 rpmi: rpm-build-python3-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Jan 4 10:34:43 rpmi: python3-module-docutils-0.20.1-alt1 sisyphus+323438.100.1.1 1687370718 installed <13>Jan 4 10:34:43 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Jan 4 10:34:43 rpmi: python3-module-urllib3-2:2.3.0-alt1 sisyphus+366320.100.2.1 1735116352 installed <13>Jan 4 10:34:43 rpmi: python3-module-attrs-24.2.0-alt2 sisyphus+355603.200.1.1 1724160494 installed <13>Jan 4 10:34:43 rpmi: python3-module-Pygments-2.18.0-alt1 sisyphus+347552.100.1.1 1714992955 installed <13>Jan 4 10:34:43 rpmi: python3-module-more-itertools-10.5.0-alt1 sisyphus+357221.100.1.1 1725964420 installed <13>Jan 4 10:34:43 rpmi: python3-module-certifi-2024.8.30-alt1 sisyphus+356919.100.1.1 1725546651 installed <13>Jan 4 10:34:43 rpmi: python3-module-six-1.17.0-alt1 sisyphus+364177.100.1.1 1733425205 installed <13>Jan 4 10:34:43 rpmi: python3-module-packaging-24.2-alt1 sisyphus+362183.100.1.1 1731315992 installed <13>Jan 4 10:34:43 rpmi: python3-module-sniffio-1.3.1-alt1 sisyphus+341424.100.1.1 1708941879 installed <13>Jan 4 10:34:43 rpmi: libtcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548256 installed <13>Jan 4 10:34:43 rpmi: python3-module-dateutil-2.8.3-alt0.git0586f4a sisyphus+338928.600.2.1 1706746480 installed <13>Jan 4 10:34:43 rpmi: python3-module-jaraco.functools-4.1.0-alt1 sisyphus+358564.100.1.1 1727528718 installed <13>Jan 4 10:34:43 rpmi: python3-module-outcome-1.3.0-alt1 sisyphus+332382.100.1.1 1697882349 installed <13>Jan 4 10:34:43 rpmi: python3-module-sortedcontainers-2.4.0-alt1 sisyphus+272042.100.1.1 1621262424 installed <13>Jan 4 10:34:43 rpmi: python3-module-markupsafe-1:3.0.2-alt1 sisyphus+360209.100.1.1 1729323052 installed <13>Jan 4 10:34:43 rpmi: python3-module-jinja2-3.1.4-alt1 sisyphus+348267.100.1.1 1715939549 installed <13>Jan 4 10:34:43 rpmi: python3-module-jmespath-1.0.1-alt1 sisyphus+317988.100.2.1 1680612150 installed <13>Jan 4 10:34:43 rpmi: python3-module-click-8.1.8-alt1 sisyphus+366297.100.1.1 1734946237 installed <13>Jan 4 10:34:43 rpmi: python3-module-zope.interface-7.2-alt1 sisyphus+363572.100.1.1 1732797442 installed <13>Jan 4 10:34:43 rpmi: python3-module-typing_extensions-4.12.2-alt1 sisyphus+351501.100.1.2 1719296652 installed <13>Jan 4 10:34:43 rpmi: python3-module-incremental-22.10.0-alt1 sisyphus+312706.100.1.1 1672404273 installed <13>Jan 4 10:34:43 rpmi: python3-module-werkzeug-3.1.3-alt1 sisyphus+361875.200.2.1 1731337173 installed <13>Jan 4 10:34:44 rpmi: tcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548256 installed <13>Jan 4 10:34:44 rpmi: python3-module-alabaster-0.7.16-alt1 sisyphus+349698.100.1.1 1716897815 installed <13>Jan 4 10:34:44 rpmi: python3-module-hyperlink-21.0.0-alt1.1 sisyphus+304836.100.1.1 1659710964 installed <13>Jan 4 10:34:44 rpmi: python3-module-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609969 installed <13>Jan 4 10:34:44 rpmi: python3-module-platformdirs-4.3.6-alt1 sisyphus+357787.200.1.1 1726664692 installed <13>Jan 4 10:34:44 rpmi: python3-module-mock-5.1.0-alt1 sisyphus+325622.100.1.1 1690382129 installed <13>Jan 4 10:34:44 rpmi: python3-module-jaraco.context-6.0.1-alt1 sisyphus+357809.300.1.1 1726769204 installed <13>Jan 4 10:34:44 rpmi: python3-module-uc-micro-py-1.0.3-alt1 sisyphus+341790.100.1.1 1709309103 installed <13>Jan 4 10:34:44 rpmi: python3-module-linkify-it-py-2.0.3-alt1 sisyphus+343902.100.1.1 1711708185 installed <13>Jan 4 10:34:44 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Jan 4 10:34:44 rpmi: python3-module-markdown-it-3.0.0-alt2 sisyphus+365460.100.1.1 1734639341 installed <13>Jan 4 10:34:44 rpmi: python3-module-rich-13.9.4-alt1 sisyphus+361780.100.1.1 1730842428 installed <13>Jan 4 10:34:44 rpmi: python3-module-railroad-diagrams-3.0.1-alt1 sisyphus+358318.100.1.1 1727257812 installed <13>Jan 4 10:34:44 rpmi: python3-module-pyparsing-3.2.0-alt1 sisyphus+359723.100.2.1 1728989647 installed <13>Jan 4 10:34:44 rpmi: python3-module-socksio-1.0.0-alt1 sisyphus+295017.1500.2.1 1644498004 installed <13>Jan 4 10:34:44 rpmi: python3-module-h11-0.14.0-alt1 sisyphus+312690.100.1.1 1672395335 installed <13>Jan 4 10:34:44 rpmi: python3-module-httpcore-1.0.5-alt1 sisyphus+347570.100.1.1 1715005713 installed <13>Jan 4 10:34:44 rpmi: python3-module-ply-3.11-alt3 sisyphus+339052.100.1.1 1706247931 installed <13>Jan 4 10:34:44 rpmi: python3-module-jsonpath-ng-1.7.0-alt1 sisyphus+359704.100.1.1 1728896567 installed <13>Jan 4 10:34:44 rpmi: python3-module-psutil-5.9.8-alt1 sisyphus+341001.100.1.1 1708284056 installed <13>Jan 4 10:34:44 rpmi: python3-module-objgraph-3.6.2-alt1 sisyphus+359468.100.1.1 1728573508 installed <13>Jan 4 10:34:44 rpmi: python3-module-greenlet-3.1.1-alt1 sisyphus+358881.100.1.1 1727933146 installed <13>Jan 4 10:34:44 rpmi: python3-module-snowballstemmer-2.2.0-alt1 sisyphus+319215.100.1.1 1682346633 installed <13>Jan 4 10:34:44 rpmi: python3-module-imagesize-1.4.1-alt1 sisyphus+318084.100.1.1 1680697673 installed <13>Jan 4 10:34:44 rpmi: python3-module-defusedxml-0.7.1-alt1 sisyphus+274841.2300.1.1 1624295691 installed <13>Jan 4 10:34:44 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733144 installed <13>Jan 4 10:34:44 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Jan 4 10:34:45 rpmi: python3-module-babel-1:2.15.0-alt1 sisyphus+353791.100.1.1 1722073848 installed <13>Jan 4 10:34:45 rpmi: python3-module-priority-2.0.0-alt3 sisyphus+338701.100.1.2 1705988383 installed <13>Jan 4 10:34:45 rpmi: python3-module-hpack-4.0.0-alt1 sisyphus+270376.200.1.1 1618956626 installed <13>Jan 4 10:34:45 rpmi: python3-module-hyperframe-6.0.1-alt1 sisyphus+270376.300.2.1 1618957001 installed <13>Jan 4 10:34:45 rpmi: python3-module-h2-4.1.0-alt1 sisyphus+325714.100.2.2 1690478873 installed <13>Jan 4 10:34:45 rpmi: python3-module-constantly-15.1.0-alt7 sisyphus+338906.100.1.1 1706107088 installed <13>Jan 4 10:34:45 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jan 4 10:34:45 rpmi: python3-module-cffi-1.17.1-alt1 sisyphus+357396.100.1.1 1726156488 installed <13>Jan 4 10:34:45 rpmi: python3-module-cryptography-43.0.0-alt1 sisyphus+353417.100.1.1 1721731017 installed <13>Jan 4 10:34:45 rpmi: python3-module-openssl-24.2.1-alt1 sisyphus+353417.200.1.1 1721731036 installed <13>Jan 4 10:34:45 rpmi: python3-module-redis-py-4.5.5-alt1.1 sisyphus+332415.100.1.1 1697904078 installed <13>Jan 4 10:34:45 rpmi: python3-module-autocommand-2.2.2-alt1.1 sisyphus+339714.100.1.1 1706968174 installed <13>Jan 4 10:34:45 rpmi: python3-module-jaraco.text-4.0.0-alt1 sisyphus+353877.400.2.1 1722250727 installed <13>Jan 4 10:34:45 rpmi: python3-module-jaraco.collections-5.1.0-alt1 sisyphus+357809.200.1.1 1726769173 installed <13>Jan 4 10:34:45 rpmi: python3-module-pkg_resources-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185085 installed <13>Jan 4 10:34:45 rpmi: python3-module-astor-0.8.1-alt1.1 sisyphus+315877.100.1.1 1677481862 installed <13>Jan 4 10:34:45 rpmi: python3-module-trio-0.28.0-alt1 sisyphus+367439.100.1.1 1735561525 installed <13>Jan 4 10:34:45 rpmi: python3-module-dns-1:2.6.1-alt1 sisyphus+341811.20.3.1 1709382170 installed <13>Jan 4 10:34:45 rpmi: python3-module-appdirs-1.4.4-alt2 sisyphus+359005.100.1.1 1728036426 installed <13>Jan 4 10:34:45 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Jan 4 10:34:45 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jan 4 10:34:45 rpmi: python3-module-pytest-8.3.4-alt1 sisyphus+363889.100.1.1 1733152874 installed <13>Jan 4 10:34:45 rpmi: python3-module-anyio-4.7.0-alt1 sisyphus+365330.140.4.1 1735376677 installed <13>Jan 4 10:34:45 rpmi: python-sphinx-objects.inv-1:2.3.14.20241219-alt1 sisyphus+365435.100.1.1 1734616744 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-applehelp-2.0.0-alt1 sisyphus+353872.100.1.1 1722243556 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-devhelp-2.0.0-alt1 sisyphus+353872.200.1.1 1722243589 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-jquery-4.1-alt3 sisyphus+339023.100.1.1 1706234262 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt2 sisyphus+348403.100.1.1 1716017686 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-htmlhelp-2.1.0-alt1 sisyphus+353893.100.2.1 1722416845 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-serializinghtml-2.0.0-alt1 sisyphus+361088.100.1.1 1730215552 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinxcontrib-qthelp-2.0.0-alt1 sisyphus+353872.300.1.1 1722243619 installed <13>Jan 4 10:34:45 rpmi: python3-module-sphinx-sphinx-build-symlink-1:7.4.7-alt3 sisyphus+354020.100.1.1 1722434734 installed <13>Jan 4 10:34:46 rpmi: python3-module-sphinx-1:7.4.7-alt3 sisyphus+354020.100.1.1 1722434734 installed <13>Jan 4 10:34:47 rpmi: python3-module-botocore-1.35.37-alt1 sisyphus+359463.100.2.3 1728576848 installed <13>Jan 4 10:34:47 rpmi: python3-module-s3transfer-0.10.4-alt1 sisyphus+363066.100.1.1 1732184388 installed <13>Jan 4 10:34:47 rpmi: libpython3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Jan 4 10:34:47 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jan 4 10:34:47 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jan 4 10:34:47 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jan 4 10:34:48 rpmi: python3-dev-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Jan 4 10:34:48 rpmi: openldap-common-2.6.9-alt2 sisyphus+367501.300.4.1 1735841751 installed <13>Jan 4 10:34:48 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684806164 installed <13>Jan 4 10:34:48 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819639 installed <13>Jan 4 10:34:48 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Jan 4 10:34:48 rpmi: libusb-1.0.27-alt1 sisyphus+347412.100.1.1 1714739652 installed <13>Jan 4 10:34:48 rpmi: libhidapi-0.12.0-alt1_1 sisyphus+303213.100.1.1 1657034193 installed <13>Jan 4 10:34:48 rpmi: python3-module-cython-hidapi-0.14.0-alt1.1 sisyphus+333513.54340.73.1 1704649757 installed <13>Jan 4 10:34:48 rpmi: python3-module-serial-3.5-alt3 sisyphus+360600.100.2.1 1729786231 installed <13>Jan 4 10:34:48 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729916 installed <86>Jan 4 10:34:48 groupadd[1639731]: group added to /etc/group: name=_keytab, GID=999 <86>Jan 4 10:34:48 groupadd[1639731]: group added to /etc/gshadow: name=_keytab <86>Jan 4 10:34:48 groupadd[1639731]: new group: name=_keytab, GID=999 <13>Jan 4 10:34:48 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735219 installed <86>Jan 4 10:34:48 groupadd[1639751]: group added to /etc/group: name=sasl, GID=998 <86>Jan 4 10:34:48 groupadd[1639751]: group added to /etc/gshadow: name=sasl <86>Jan 4 10:34:48 groupadd[1639751]: new group: name=sasl, GID=998 <13>Jan 4 10:34:48 rpmi: libsasl2-3-2.1.28-alt2.1 sisyphus+367419.100.1.1 1735482553 installed <13>Jan 4 10:34:48 rpmi: libldap2-2.6.9-alt2 sisyphus+367501.300.4.1 1735841767 installed <13>Jan 4 10:34:49 rpmi: libpq5-17.2-alt1 sisyphus+362974.100.1.1 1732098518 installed <13>Jan 4 10:34:49 rpmi: python3-module-psycopg2-2.9.10-alt1 sisyphus+361099.100.1.1 1730221779 installed <13>Jan 4 10:34:49 rpmi: libcares-1.34.4-alt1 sisyphus+366652.100.1.1 1735281169 installed <13>Jan 4 10:34:49 rpmi: python3-module-pycares-4.4.0-alt1 sisyphus+347421.100.1.1 1714743573 installed <13>Jan 4 10:34:49 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781690 installed <13>Jan 4 10:34:49 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598420 installed <13>Jan 4 10:34:49 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598420 installed <13>Jan 4 10:34:49 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605157 installed <13>Jan 4 10:34:49 rpmi: libharfbuzz-10.1.0-alt1 sisyphus+361773.100.1.1 1730824050 installed <13>Jan 4 10:34:49 rpmi: libfreetype-2.13.3-alt1 sisyphus+355656.100.1.1 1724221065 installed <13>Jan 4 10:34:49 rpmi: libfontconfig1-2.15.0-alt1 sisyphus+355771.100.2.3 1724337302 installed <13>Jan 4 10:34:49 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441073 installed <13>Jan 4 10:34:49 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577440 installed <13>Jan 4 10:34:49 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342009 installed <13>Jan 4 10:34:49 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Jan 4 10:34:49 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240774 installed <13>Jan 4 10:34:49 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436131 installed <13>Jan 4 10:34:49 rpmi: libXft-2.3.8-alt1 sisyphus+331490.400.1.1 1697023273 installed <13>Jan 4 10:34:49 rpmi: libtk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548528 installed <13>Jan 4 10:34:49 rpmi: tk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548528 installed <13>Jan 4 10:34:49 rpmi: tcl-tix-8.4.3-alt4 sisyphus+277292.300.2.1 1625442551 installed <13>Jan 4 10:34:49 rpmi: python3-modules-tkinter-3.12.8-alt1 sisyphus+364336.100.1.1 1733526985 installed <13>Jan 4 10:34:49 rpmi: python3-module-twisted-logger-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Jan 4 10:34:49 rpmi: python3-module-twisted-web-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Jan 4 10:34:49 rpmi: python3-module-twisted-words-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Jan 4 10:34:49 rpmi: python3-module-automat-24.8.1-alt1 sisyphus+355768.100.2.1 1724411664 installed <13>Jan 4 10:34:50 rpmi: python3-module-twisted-core-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Jan 4 10:34:50 rpmi: python3-module-twisted-names-24.7.0-alt1 sisyphus+360814.100.1.1 1729934750 installed <13>Jan 4 10:34:50 rpmi: python3-module-tornado-6.4.2-alt1 sisyphus+363445.100.1.1 1732635493 installed <13>Jan 4 10:34:50 rpmi: python3-module-eventlet-0.38.2-alt1 sisyphus+365048.100.1.1 1734193970 installed <13>Jan 4 10:34:50 rpmi: python3-module-setuptools-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185085 installed <13>Jan 4 10:34:50 rpmi: python3-module-boto3-1.35.37-alt1 sisyphus+359463.200.2.3 1728577238 installed <13>Jan 4 10:34:50 rpmi: python3-module-httpx-0.27.0-alt2 sisyphus+350273.700.4.1 1735399284 installed <13>Jan 4 10:34:50 rpmi: python3-module-pytest-httpserver-1.1.0-alt1 sisyphus+354948.100.1.1 1723435275 installed <13>Jan 4 10:34:50 rpmi: python3-module-fakeredis-2.18.0-alt1 sisyphus+327212.200.2.2 1692097611 installed <13>Jan 4 10:34:50 rpmi: python3-module-httplib2-0.22.0-alt1 sisyphus+317205.100.1.1 1679487967 installed <13>Jan 4 10:34:50 rpmi: python3-module-sure-2.0.1-alt1 sisyphus+348284.100.2.1 1716195847 installed <13>Jan 4 10:34:50 rpmi: python3-module-freezegun-1.5.1-alt1 sisyphus+347914.100.1.1 1715596213 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-httpretty-1.1.4-alt2.nosrc.rpm (w1.gzdio) <13>Jan 4 10:34:52 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: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.18047 + 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.18047 + 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 -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /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/lib/python3/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /usr/lib/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-i686/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-i686/wheel INFO : root : creating build/bdist.linux-i686/wheel/httpretty INFO : root : copying build/lib/httpretty/__init__.py -> build/bdist.linux-i686/wheel/./httpretty INFO : root : copying build/lib/httpretty/compat.py -> build/bdist.linux-i686/wheel/./httpretty INFO : root : copying build/lib/httpretty/core.py -> build/bdist.linux-i686/wheel/./httpretty INFO : root : copying build/lib/httpretty/errors.py -> build/bdist.linux-i686/wheel/./httpretty INFO : root : copying build/lib/httpretty/http.py -> build/bdist.linux-i686/wheel/./httpretty INFO : root : copying build/lib/httpretty/utils.py -> build/bdist.linux-i686/wheel/./httpretty INFO : root : copying build/lib/httpretty/version.py -> build/bdist.linux-i686/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-i686/wheel/./httpretty-1.1.4-py3.12.egg-info INFO : root : running install_scripts INFO : root : creating build/bdist.linux-i686/wheel/httpretty-1.1.4.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/httpretty-1.1.4/dist/.tmp-gk9lx9ma/httpretty-1.1.4-py3-none-any.whl' and adding 'build/bdist.linux-i686/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-i686/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.18771 + 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.41006 + 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 -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + 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: anyio-4.7.0, 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 0xf2a1ac58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a1a8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2c618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2c258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2c848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a1a9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2ca78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2c898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2ca28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2840208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2ca28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28405c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2be13e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2c578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3ace2a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a87848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf67f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a1ac58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a1af28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cb12a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cb1398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe77f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe7988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe72a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2be1118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2840618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2840398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a044d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2cde8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04708> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a04208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b808e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b804d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b803e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28539d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca4f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b803e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca4848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca43e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca4898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca45c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d168e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d181b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca48e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d188e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18ca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306f9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306fca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306fbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306fc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306f438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306fe88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305ea28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305ebb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fea28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27febb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27def28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2792f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2792848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27923e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2792898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27925c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27923e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27936b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27937a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a577f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a573e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6c168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6cc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6ca28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6c4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6cde8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6cbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cdc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cdf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afb3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afbac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afb9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afbb68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afb168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afbed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d969d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afb9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afb4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6c208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a570c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cdd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6c9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6ce38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db88e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f72a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27f7a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2793618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27937a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d969d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2792398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2792a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306f898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306f0c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a87848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a6c4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30cd528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2792348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16708> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db88e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf305e208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fee38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28539d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cb12f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca4618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80c58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe7758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27de528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a57e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2ced8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf306f5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d16938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a2c6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27fe528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db8d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b80ca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d96578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2afb078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf80c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ae5488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28407f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ae5758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ae5348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0bbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0b168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0b1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cb1118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27924d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8cf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca46b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe7208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe7618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ca46b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0bb18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ae5528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ae5348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0bc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0bb68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0be88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9a988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9ae38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a461b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46cf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9a4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2853b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d18988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ae5938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2bf8a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fe7208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0b2f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0b3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9a578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9ae38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9a028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2840a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db02f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30c4d98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db00c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db07f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db0e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db0ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d91a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9ae38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d91c58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d91f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d91668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d91028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db0848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d701b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d602a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27474d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6e528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6ec08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6ef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6e488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6e938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6e488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a403e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a409d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27082f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27080c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27087f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2708668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2708848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27381b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2738b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27384d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2738988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2738118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27087a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3dca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3de88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3da28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2738398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b059d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b057a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b054d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b05258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b05d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b05a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfcd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfcac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfc6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfc618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfc898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfca28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dc578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dcbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dc438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dcb18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dc618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dc1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e57a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2882398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e50c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2882f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28823e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2882938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28821b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddff78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e57a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28820c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df78e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095708> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30955c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30950c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281d9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281d7a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281d4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281d258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281dd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281da28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282bd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282bac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282b6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282b618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282b898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f864d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f86438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282bd98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282bca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281db68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281d848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2882488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2882ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f86118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f861b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282b398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dcde8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dca28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfccf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfcd98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2882bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282bf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2df7c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27382a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2738988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282b258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3da28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f86a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e52a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f86528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f86988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2708f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddfe38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27088e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28dc258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a409d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfc6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2708618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfccf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3095848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf281d1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ddf618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6e7f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f86f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282ba28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b05118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3d488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf282bf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2743028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d701b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4e0be88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d916b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d912a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f867f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a40f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d91ca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27437f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db0758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db0e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9aa28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9abb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db0e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27135c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d9a8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2713168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de97f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2cfce38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3dcf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28e5d98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27089d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2db03e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d602f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2713a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3a6e578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27133e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2713d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dceca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dce168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dce028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2b3dcf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2a46b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2747a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2713a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d60a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf27138e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dcebb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dceac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dce9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dceac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbc578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbcbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbc758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbcc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbce88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbcc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbbf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbba28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbe348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbbbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbe398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbe9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbe398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290aa78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290aac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290af78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290a708> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290a078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbbb18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29098e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29092f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290aed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e617f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e61078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e61ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e613e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e61f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29090c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e523e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4fd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4fac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4f6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4f618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4f898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4ff28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc07a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc07a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd63e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd69d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab22f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab20c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab27f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab2e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab2ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2abaa28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2abac58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2abaf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2612258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab2848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26128e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2612bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2612078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26122f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2612a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f627f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f623e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26120c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7abb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a2f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7aca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a2a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8bc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8bf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f393e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f39ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f399d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f39b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f39168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f39d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f032f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303ef78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f036b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303eb68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30198e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019d98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e2a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efa9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efad98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efa028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e2f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f399d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f39668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e986b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7aca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a0c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efa438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303ed48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f037f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab2ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd6528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab2e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3019f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0d98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f03c58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efac08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efa438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f39f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4f1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e4f0c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2612078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26125c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2d70bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e8b938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fc0988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98d98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf303e398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ab29d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd64d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e98758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2abae38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e61e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2abad98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909cf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290a7f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290aca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbe348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dce168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2713a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fd69d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f62ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf290a6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2713d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dce168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e52d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbcca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69ca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daa8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daa938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf28056b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbcca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2f7a438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4de9848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2909d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daa348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daa6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbb4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daabb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daad48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e695c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4d8d488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daa9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4d8d988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3003ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3003d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4d8dd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2805e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4dce208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daa9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29095c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69ca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4daaf78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4d8df28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e69078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4d8d488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf4d8d6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30035c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2fbef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30036b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30037a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3003758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3022168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3022398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3022a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3022988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf3022b18> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf30224d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ec45c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ec48e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ec47a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ec4c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ec4ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ec4c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efc488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efcf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efc8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efca28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efc4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efc3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ece348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efcbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ecef28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ece398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ece9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ece168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e25f78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2efc3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e25848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e253e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e25898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e255c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e03758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2ece078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e038e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e03de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e03168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e03ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a31b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e258e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a38e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a3ca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a3e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a3668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a3a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e03d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29819d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29817a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29814d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2981258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2981d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2981a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bfd48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bfac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bf6b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bf618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bf898> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bfa28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264a578> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264abb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264a758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264ac08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264ae88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264ac08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265b488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265bf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265b8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265ba28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265b4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265b3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25edbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265bbb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25edc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd2f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cded8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cdc58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2758> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed5c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d28e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2ac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fb1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cde38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fb8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fbc58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fbb68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fba78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e44d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4de8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0618> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0208> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ab528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26abc08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26abf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ab488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ab938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ab488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ae3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aeac8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ae9d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aeb68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ae168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aed48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29662f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aebb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29660c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29667f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2966e88> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2966ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aed48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951c58> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951028> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2966848> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25728e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572bb8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25722f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951438> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25787f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2578078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2578d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2578258> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2578cf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572528> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25722a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2966d98> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29662f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aecf8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26abf28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ab8e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25785c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0668> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572078> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29516b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fba78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fb1b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26aef78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f02f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25787a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd118> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed2a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2572d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265b4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25edf78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4d48> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf265b488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed2a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2578ed8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2951a78> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf264a2a8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e46b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29fb348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2578938> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ae3e8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29bfca8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2e38> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26ab168> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29d2f28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29817f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f0348> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a3c08> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29660c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f06b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd398> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25cd4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26f06b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29811b8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2981b68> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e45c8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf29a3488> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2aba988> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf25ed4d8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf26e4a28> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=True) to 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 0xf2e252f8> def test_func(self, *args, **kwargs): run_test = generate_method(test_name) > run_test(self, *args, **kwargs) tests/bugfixes/pytest/test_426_mypy_segfault.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ httpretty/core.py:2075: in wrapper return test(*args, **kw) tests/bugfixes/pytest/test_426_mypy_segfault.py:43: in test_func response = requests.post( /usr/lib/python3/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E E Tip: You could try setting (allow_net_connect=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 126.44s (0:02:06) = 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.41006 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.41006 (%check) Command exited with non-zero status 1 127.03user 2.65system 2:09.62elapsed 100%CPU (0avgtext+0avgdata 112680maxresident)k 0inputs+0outputs (0major+314338minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-httpretty-1.1.4-alt2.src.rpm' failed. Command exited with non-zero status 1 6.77user 3.27system 2:33.91elapsed 6%CPU (0avgtext+0avgdata 131332maxresident)k 122616inputs+0outputs (0major+351147minor)pagefaults 0swaps