<86>Dec 27 13:19:37 userdel[3584354]: delete user 'rooter' <86>Dec 27 13:19:37 userdel[3584354]: removed group 'rooter' owned by 'rooter' <86>Dec 27 13:19:37 userdel[3584354]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 27 13:19:37 groupadd[3584382]: group added to /etc/group: name=rooter, GID=1808 <86>Dec 27 13:19:37 groupadd[3584382]: group added to /etc/gshadow: name=rooter <86>Dec 27 13:19:37 groupadd[3584382]: new group: name=rooter, GID=1808 <86>Dec 27 13:19:37 useradd[3584407]: new user: name=rooter, UID=1808, GID=1808, home=/root, shell=/bin/bash, from=none <86>Dec 27 13:19:37 userdel[3584446]: delete user 'builder' <86>Dec 27 13:19:37 userdel[3584446]: removed group 'builder' owned by 'builder' <86>Dec 27 13:19:37 userdel[3584446]: removed shadow group 'builder' owned by 'builder' <86>Dec 27 13:19:37 groupadd[3584480]: group added to /etc/group: name=builder, GID=1809 <86>Dec 27 13:19:37 groupadd[3584480]: group added to /etc/gshadow: name=builder <86>Dec 27 13:19:37 groupadd[3584480]: new group: name=builder, GID=1809 <86>Dec 27 13:19:37 useradd[3584508]: new user: name=builder, UID=1809, GID=1809, home=/usr/src, shell=/bin/bash, from=none <13>Dec 27 13:19:40 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Dec 27 13:19:40 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed <13>Dec 27 13:19:40 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Dec 27 13:19:40 rpmi: openssl-config-3.2.0-alt1 icarus+366667.200.1.1 1735293231 installed <13>Dec 27 13:19:40 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Dec 27 13:19:40 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 27 13:19:40 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Dec 27 13:19:40 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 27 13:19:40 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 27 13:19:40 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Dec 27 13:19:40 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Dec 27 13:19:40 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 27 13:19:40 rpmi: libcrypto3-3.3.2-alt1 icarus+366667.100.1.1 1735293186 installed <13>Dec 27 13:19:40 rpmi: libssl3-3.3.2-alt1 icarus+366667.100.1.1 1735293186 installed <13>Dec 27 13:19:41 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 13:19:41 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 13:19:41 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Dec 27 13:19:41 rpmi: tests-for-installed-python3-pkgs-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Dec 27 13:19:41 rpmi: rpm-build-python3-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Dec 27 13:19:43 rpmi: python3-module-packaging-24.2-alt1 sisyphus+362183.100.1.1 1731315992 installed <13>Dec 27 13:19:43 rpmi: python3-module-more-itertools-10.5.0-alt1 sisyphus+357221.100.1.1 1725964420 installed <13>Dec 27 13:19:43 rpmi: libidn2-2.3.7-alt1 sisyphus+339505.100.1.2 1706718968 installed <13>Dec 27 13:19:43 rpmi: libnettle8-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Dec 27 13:19:43 rpmi: python3-module-jaraco.functools-4.1.0-alt1 sisyphus+358564.100.1.1 1727528718 installed <13>Dec 27 13:19:43 rpmi: libhogweed6-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Dec 27 13:19:43 rpmi: libgnutls30-3.8.8-alt2 sisyphus+364832.100.1.1 1734007749 installed <13>Dec 27 13:19:43 rpmi: libngtcp2.16-1.10.0-alt1 sisyphus+366376.200.1.1 1735020753 installed <13>Dec 27 13:19:43 rpmi: libngtcp2_crypto_gnutls8-1.10.0-alt1 sisyphus+366376.200.1.1 1735020753 installed <13>Dec 27 13:19:43 rpmi: python3-module-urllib3-2:2.3.0-alt1 sisyphus+366320.100.2.1 1735116352 installed <13>Dec 27 13:19:43 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Dec 27 13:19:43 rpmi: python3-module-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609968 installed <13>Dec 27 13:19:43 rpmi: python3-module-platformdirs-4.3.6-alt1 sisyphus+357787.200.1.1 1726664692 installed <13>Dec 27 13:19:44 rpmi: python3-module-jaraco.context-6.0.1-alt1 sisyphus+357809.300.1.1 1726769204 installed <13>Dec 27 13:19:44 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Dec 27 13:19:44 rpmi: python3-module-pytest-8.3.4-alt1 sisyphus+363889.100.1.1 1733152874 installed <13>Dec 27 13:19:44 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Dec 27 13:19:44 rpmi: python3-module-wrapt-1.17.0-alt1 sisyphus+363443.100.1.1 1732634146 installed <13>Dec 27 13:19:44 rpmi: python3-module-six-1.17.0-alt1 sisyphus+364177.100.1.1 1733425205 installed <13>Dec 27 13:19:44 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733155 installed <13>Dec 27 13:19:44 rpmi: python3-module-autocommand-2.2.2-alt1.1 sisyphus+339714.100.1.1 1706968174 installed <13>Dec 27 13:19:44 rpmi: python3-module-jaraco.text-4.0.0-alt1 sisyphus+353877.400.2.1 1722250727 installed <13>Dec 27 13:19:44 rpmi: python3-module-jaraco.collections-5.1.0-alt1 sisyphus+357809.200.1.1 1726769173 installed <13>Dec 27 13:19:44 rpmi: python3-module-pkg_resources-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185054 installed <13>Dec 27 13:19:44 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Dec 27 13:19:44 rpmi: python3-module-cffi-1.17.1-alt1 sisyphus+357396.100.1.1 1726156476 installed <13>Dec 27 13:19:44 rpmi: mercurial-6.9-alt1 sisyphus+366259.100.1.1 1734896770 installed <13>Dec 27 13:19:44 rpmi: libsqlite3-3.47.1-alt1 sisyphus+365248.200.3.1 1734527620 installed <13>Dec 27 13:19:44 rpmi: python3-modules-sqlite3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 13:19:44 rpmi: python3-module-coverage-7.3.2-alt1 sisyphus+340977.100.1.1 1708279274 installed <13>Dec 27 13:19:44 rpmi: libsodium26-1.0.20-alt1 sisyphus+349409.100.1.1 1716752749 installed <13>Dec 27 13:19:44 rpmi: libpython3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 13:19:44 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Dec 27 13:19:44 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Dec 27 13:19:44 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Dec 27 13:19:45 rpmi: python3-dev-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 27 13:19:45 rpmi: python3-module-setuptools-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185054 installed <13>Dec 27 13:19:45 rpmi: libssh2-1.11.0-alt2 sisyphus+339356.100.1.1 1706593137 installed <13>Dec 27 13:19:45 rpmi: publicsuffix-list-dafsa-20240911-alt1 sisyphus+357399.100.1.1 1726160479 installed <13>Dec 27 13:19:45 rpmi: libpsl-0.21.5-alt1 sisyphus+338474.100.1.1 1705684769 installed <13>Dec 27 13:19:45 rpmi: libnghttp3.9-1.7.0-alt1 sisyphus+366376.100.1.1 1735020696 installed <13>Dec 27 13:19:45 rpmi: libnghttp2-1.64.0-alt1 sisyphus+363795.200.2.1 1733118555 installed <13>Dec 27 13:19:45 rpmi: openldap-common-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 27 13:19:45 rpmi: libntlm-1.5-alt1 sisyphus+278100.3300.1.1 1626058899 installed <13>Dec 27 13:19:45 rpmi: libidn-1.37-alt2 sisyphus+300849.100.1.1 1653769687 installed <13>Dec 27 13:19:45 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 27 13:19:45 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 27 13:19:45 rpmi: libxxhash-0.8.2-alt1 sisyphus+336514.200.7.1 1702672118 installed <13>Dec 27 13:19:45 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667412981 installed <13>Dec 27 13:19:45 rpmi: rsync-3.2.7-alt1 sisyphus+325006.2000.1.1 1689497333 installed <13>Dec 27 13:19:45 rpmi: openssh-common-9.6p1-alt2 sisyphus+351911.100.1.1 1719838544 installed <13>Dec 27 13:19:45 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684803947 installed <13>Dec 27 13:19:45 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819640 installed <13>Dec 27 13:19:45 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Dec 27 13:19:45 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729908 installed <86>Dec 27 13:19:45 groupadd[3607929]: group added to /etc/group: name=_keytab, GID=999 <86>Dec 27 13:19:45 groupadd[3607929]: group added to /etc/gshadow: name=_keytab <86>Dec 27 13:19:45 groupadd[3607929]: new group: name=_keytab, GID=999 <13>Dec 27 13:19:45 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735141 installed <13>Dec 27 13:19:45 rpmi: libgsasl18-2.2.1-alt2 sisyphus+359713.200.2.1 1728905430 installed <86>Dec 27 13:19:45 groupadd[3608087]: group added to /etc/group: name=sasl, GID=998 <86>Dec 27 13:19:45 groupadd[3608087]: group added to /etc/gshadow: name=sasl <86>Dec 27 13:19:45 groupadd[3608087]: new group: name=sasl, GID=998 <13>Dec 27 13:19:45 rpmi: libsasl2-3-2.1.28-alt2 sisyphus+343335.100.1.1 1711112544 installed <13>Dec 27 13:19:46 rpmi: libldap2-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 27 13:19:46 rpmi: libcurl-8.11.1-alt1 sisyphus+364692.100.1.1 1733905204 installed <13>Dec 27 13:19:46 rpmi: libedit3-3.1.20230828-alt1 sisyphus+330914.200.3.1 1696922743 installed <86>Dec 27 13:19:46 groupadd[3608289]: group added to /etc/group: name=sshagent, GID=997 <86>Dec 27 13:19:46 groupadd[3608289]: group added to /etc/gshadow: name=sshagent <86>Dec 27 13:19:46 groupadd[3608289]: new group: name=sshagent, GID=997 <13>Dec 27 13:19:46 rpmi: openssh-clients-9.6p1-alt2 sisyphus+351911.100.1.1 1719838544 installed <13>Dec 27 13:19:46 rpmi: less-633-alt1 sisyphus+328181.300.2.1 1693321749 installed <13>Dec 27 13:19:46 rpmi: diffstat-1.64-alt1 sisyphus+346132.200.3.2 1716466240 installed <13>Dec 27 13:19:46 rpmi: git-core-2.42.2-alt1 sisyphus+348068.100.1.1 1715721632 installed <13>Dec 27 13:19:46 rpmi: python3-module-setuptools_scm-8.1.0-alt1 sisyphus+358552.200.1.1 1727504224 installed <13>Dec 27 13:19:46 rpmi: python3-module-pynacl-1.5.0-alt1 sisyphus+333513.31600.72.1 1704589683 installed <13>Dec 27 13:19:46 rpmi: python3-module-pytest-cov-5.0.0-alt1 sisyphus+343602.100.1.1 1711449884 installed <13>Dec 27 13:19:46 rpmi: python3-module-cryptography-43.0.0-alt1 sisyphus+353417.100.1.1 1721731007 installed <13>Dec 27 13:19:46 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Dec 27 13:19:46 rpmi: python3-module-dateutil-2.8.3-alt0.git0586f4a sisyphus+338928.600.2.1 1706746480 installed <13>Dec 27 13:19:46 rpmi: python3-module-deprecated-1.2.15-alt1 sisyphus+362828.100.1.1 1731930864 installed <13>Dec 27 13:19:46 rpmi: python3-module-typing_extensions-4.12.2-alt1 sisyphus+351501.100.1.2 1719296652 installed <13>Dec 27 13:19:46 rpmi: python3-module-jwt-2.8.0-alt1 sisyphus+321606.440.6.1 1689769867 installed <13>Dec 27 13:19:46 rpmi: python3-module-httpretty-1.1.4-alt2 sisyphus+339708.100.1.1 1706951366 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-PyGithub-2.5.0-alt1.nosrc.rpm (w1.gzdio) <13>Dec 27 13:19:48 rpmi: python3-module-system-seed-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683425 installed <13>Dec 27 13:19:48 rpmi: python3-module-filelock-3.16.1-alt1 sisyphus+357787.100.1.1 1726664660 installed <13>Dec 27 13:19:48 rpmi: python3-module-pip-wheel-24.3.1-alt1 sisyphus+361010.100.1.1 1730124542 installed <13>Dec 27 13:19:48 rpmi: python3-module-setuptools-wheel-1:75.6.0-alt1 sisyphus+363072.100.1.1 1732185054 installed <13>Dec 27 13:19:48 rpmi: python3-module-wheel-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609968 installed <13>Dec 27 13:19:48 rpmi: python3-module-system-seed-wheels-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683425 installed <13>Dec 27 13:19:48 rpmi: python3-module-distlib-0.3.9-alt1 sisyphus+359423.100.1.1 1728557083 installed <13>Dec 27 13:19:48 rpmi: python3-module-virtualenv-20.28.0-alt1 sisyphus+363402.100.2.1 1732630993 installed <13>Dec 27 13:19:48 rpmi: python3-module-apipkg-3.0.2-alt1 sisyphus+350203.100.1.1 1717353225 installed <13>Dec 27 13:19:48 rpmi: python3-module-py-1.11.0-alt1 sisyphus+295927.100.2.1 1646050822 installed <13>Dec 27 13:19:48 rpmi: python3-module-tox-3.27.1-alt4 sisyphus+345209.200.2.1 1713349545 installed <13>Dec 27 13:19:48 rpmi: python3-module-tox-console-scripts-0.3.2-alt2 sisyphus+340507.100.1.1 1707747510 installed <13>Dec 27 13:19:48 rpmi: python3-module-tox-no-deps-0.2.0-alt3 sisyphus+340514.100.1.1 1707748768 installed <13>Dec 27 13:19:48 rpmi: python3-module-pyproject-installer-0.5.5-alt2 sisyphus+366395.100.1.1 1735032014 installed Installing python3-module-PyGithub-2.5.0-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.14382 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-PyGithub-2.5.0 + echo 'Source #0 (python3-module-PyGithub-2.5.0.tar):' Source #0 (python3-module-PyGithub-2.5.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-PyGithub-2.5.0.tar + cd python3-module-PyGithub-2.5.0 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.14382 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-PyGithub-2.5.0 + export SETUPTOOLS_SCM_PRETEND_VERSION=2.5.0 + SETUPTOOLS_SCM_PRETEND_VERSION=2.5.0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : root : running bdist_wheel INFO : root : running build INFO : root : running build_py INFO : root : creating build/lib/github INFO : root : copying github/AccessToken.py -> build/lib/github INFO : root : copying github/AdvisoryBase.py -> build/lib/github INFO : root : copying github/AdvisoryCredit.py -> build/lib/github INFO : root : copying github/AdvisoryCreditDetailed.py -> build/lib/github INFO : root : copying github/AdvisoryVulnerability.py -> build/lib/github INFO : root : copying github/AdvisoryVulnerabilityPackage.py -> build/lib/github INFO : root : copying github/AppAuthentication.py -> build/lib/github INFO : root : copying github/ApplicationOAuth.py -> build/lib/github INFO : root : copying github/Artifact.py -> build/lib/github INFO : root : copying github/Auth.py -> build/lib/github INFO : root : copying github/AuthenticatedUser.py -> build/lib/github INFO : root : copying github/Authorization.py -> build/lib/github INFO : root : copying github/AuthorizationApplication.py -> build/lib/github INFO : root : copying github/Autolink.py -> build/lib/github INFO : root : copying github/Branch.py -> build/lib/github INFO : root : copying github/BranchProtection.py -> build/lib/github INFO : root : copying github/CVSS.py -> build/lib/github INFO : root : copying github/CWE.py -> build/lib/github INFO : root : copying github/CheckRun.py -> build/lib/github INFO : root : copying github/CheckRunAnnotation.py -> build/lib/github INFO : root : copying github/CheckRunOutput.py -> build/lib/github INFO : root : copying github/CheckSuite.py -> build/lib/github INFO : root : copying github/Clones.py -> build/lib/github INFO : root : copying github/CodeScanAlert.py -> build/lib/github INFO : root : copying github/CodeScanAlertInstance.py -> build/lib/github INFO : root : copying github/CodeScanAlertInstanceLocation.py -> build/lib/github INFO : root : copying github/CodeScanRule.py -> build/lib/github INFO : root : copying github/CodeScanTool.py -> build/lib/github INFO : root : copying github/Commit.py -> build/lib/github INFO : root : copying github/CommitCombinedStatus.py -> build/lib/github INFO : root : copying github/CommitComment.py -> build/lib/github INFO : root : copying github/CommitStats.py -> build/lib/github INFO : root : copying github/CommitStatus.py -> build/lib/github INFO : root : copying github/Comparison.py -> build/lib/github INFO : root : copying github/Consts.py -> build/lib/github INFO : root : copying github/ContentFile.py -> build/lib/github INFO : root : copying github/DependabotAlert.py -> build/lib/github INFO : root : copying github/DependabotAlertAdvisory.py -> build/lib/github INFO : root : copying github/DependabotAlertDependency.py -> build/lib/github INFO : root : copying github/DependabotAlertVulnerability.py -> build/lib/github INFO : root : copying github/Deployment.py -> build/lib/github INFO : root : copying github/DeploymentStatus.py -> build/lib/github INFO : root : copying github/DiscussionBase.py -> build/lib/github INFO : root : copying github/DiscussionCommentBase.py -> build/lib/github INFO : root : copying github/Download.py -> build/lib/github INFO : root : copying github/Enterprise.py -> build/lib/github INFO : root : copying github/EnterpriseConsumedLicenses.py -> build/lib/github INFO : root : copying github/Environment.py -> build/lib/github INFO : root : copying github/EnvironmentDeploymentBranchPolicy.py -> build/lib/github INFO : root : copying github/EnvironmentProtectionRule.py -> build/lib/github INFO : root : copying github/EnvironmentProtectionRuleReviewer.py -> build/lib/github INFO : root : copying github/Event.py -> build/lib/github INFO : root : copying github/File.py -> build/lib/github INFO : root : copying github/Gist.py -> build/lib/github INFO : root : copying github/GistComment.py -> build/lib/github INFO : root : copying github/GistFile.py -> build/lib/github INFO : root : copying github/GistHistoryState.py -> build/lib/github INFO : root : copying github/GitAuthor.py -> build/lib/github INFO : root : copying github/GitBlob.py -> build/lib/github INFO : root : copying github/GitCommit.py -> build/lib/github INFO : root : copying github/GitObject.py -> build/lib/github INFO : root : copying github/GitRef.py -> build/lib/github INFO : root : copying github/GitRelease.py -> build/lib/github INFO : root : copying github/GitReleaseAsset.py -> build/lib/github INFO : root : copying github/GitTag.py -> build/lib/github INFO : root : copying github/GitTree.py -> build/lib/github INFO : root : copying github/GitTreeElement.py -> build/lib/github INFO : root : copying github/GithubApp.py -> build/lib/github INFO : root : copying github/GithubException.py -> build/lib/github INFO : root : copying github/GithubIntegration.py -> build/lib/github INFO : root : copying github/GithubObject.py -> build/lib/github INFO : root : copying github/GithubRetry.py -> build/lib/github INFO : root : copying github/GitignoreTemplate.py -> build/lib/github INFO : root : copying github/GlobalAdvisory.py -> build/lib/github INFO : root : copying github/Hook.py -> build/lib/github INFO : root : copying github/HookDelivery.py -> build/lib/github INFO : root : copying github/HookDescription.py -> build/lib/github INFO : root : copying github/HookResponse.py -> build/lib/github INFO : root : copying github/InputFileContent.py -> build/lib/github INFO : root : copying github/InputGitAuthor.py -> build/lib/github INFO : root : copying github/InputGitTreeElement.py -> build/lib/github INFO : root : copying github/Installation.py -> build/lib/github INFO : root : copying github/InstallationAuthorization.py -> build/lib/github INFO : root : copying github/Invitation.py -> build/lib/github INFO : root : copying github/Issue.py -> build/lib/github INFO : root : copying github/IssueComment.py -> build/lib/github INFO : root : copying github/IssueEvent.py -> build/lib/github INFO : root : copying github/IssuePullRequest.py -> build/lib/github INFO : root : copying github/Label.py -> build/lib/github INFO : root : copying github/License.py -> build/lib/github INFO : root : copying github/MainClass.py -> build/lib/github INFO : root : copying github/Membership.py -> build/lib/github INFO : root : copying github/Migration.py -> build/lib/github INFO : root : copying github/Milestone.py -> build/lib/github INFO : root : copying github/NamedEnterpriseUser.py -> build/lib/github INFO : root : copying github/NamedUser.py -> build/lib/github INFO : root : copying github/Notification.py -> build/lib/github INFO : root : copying github/NotificationSubject.py -> build/lib/github INFO : root : copying github/Organization.py -> build/lib/github INFO : root : copying github/OrganizationCustomProperty.py -> build/lib/github INFO : root : copying github/OrganizationDependabotAlert.py -> build/lib/github INFO : root : copying github/OrganizationSecret.py -> build/lib/github INFO : root : copying github/OrganizationVariable.py -> build/lib/github INFO : root : copying github/PaginatedList.py -> build/lib/github INFO : root : copying github/Path.py -> build/lib/github INFO : root : copying github/Permissions.py -> build/lib/github INFO : root : copying github/Plan.py -> build/lib/github INFO : root : copying github/Project.py -> build/lib/github INFO : root : copying github/ProjectCard.py -> build/lib/github INFO : root : copying github/ProjectColumn.py -> build/lib/github INFO : root : copying github/PublicKey.py -> build/lib/github INFO : root : copying github/PullRequest.py -> build/lib/github INFO : root : copying github/PullRequestComment.py -> build/lib/github INFO : root : copying github/PullRequestMergeStatus.py -> build/lib/github INFO : root : copying github/PullRequestPart.py -> build/lib/github INFO : root : copying github/PullRequestReview.py -> build/lib/github INFO : root : copying github/Rate.py -> build/lib/github INFO : root : copying github/RateLimit.py -> build/lib/github INFO : root : copying github/Reaction.py -> build/lib/github INFO : root : copying github/Referrer.py -> build/lib/github INFO : root : copying github/Repository.py -> build/lib/github INFO : root : copying github/RepositoryAdvisory.py -> build/lib/github INFO : root : copying github/RepositoryDiscussion.py -> build/lib/github INFO : root : copying github/RepositoryDiscussionCategory.py -> build/lib/github INFO : root : copying github/RepositoryDiscussionComment.py -> build/lib/github INFO : root : copying github/RepositoryKey.py -> build/lib/github INFO : root : copying github/RepositoryPreferences.py -> build/lib/github INFO : root : copying github/Requester.py -> build/lib/github INFO : root : copying github/RequiredPullRequestReviews.py -> build/lib/github INFO : root : copying github/RequiredStatusChecks.py -> build/lib/github INFO : root : copying github/Secret.py -> build/lib/github INFO : root : copying github/SecurityAndAnalysis.py -> build/lib/github INFO : root : copying github/SecurityAndAnalysisFeature.py -> build/lib/github INFO : root : copying github/SelfHostedActionsRunner.py -> build/lib/github INFO : root : copying github/SourceImport.py -> build/lib/github INFO : root : copying github/Stargazer.py -> build/lib/github INFO : root : copying github/StatsCodeFrequency.py -> build/lib/github INFO : root : copying github/StatsCommitActivity.py -> build/lib/github INFO : root : copying github/StatsContributor.py -> build/lib/github INFO : root : copying github/StatsParticipation.py -> build/lib/github INFO : root : copying github/StatsPunchCard.py -> build/lib/github INFO : root : copying github/Tag.py -> build/lib/github INFO : root : copying github/Team.py -> build/lib/github INFO : root : copying github/TeamDiscussion.py -> build/lib/github INFO : root : copying github/TimelineEvent.py -> build/lib/github INFO : root : copying github/TimelineEventSource.py -> build/lib/github INFO : root : copying github/Topic.py -> build/lib/github INFO : root : copying github/UserKey.py -> build/lib/github INFO : root : copying github/Variable.py -> build/lib/github INFO : root : copying github/View.py -> build/lib/github INFO : root : copying github/Workflow.py -> build/lib/github INFO : root : copying github/WorkflowJob.py -> build/lib/github INFO : root : copying github/WorkflowRun.py -> build/lib/github INFO : root : copying github/WorkflowStep.py -> build/lib/github INFO : root : copying github/__init__.py -> build/lib/github INFO : root : running egg_info INFO : root : creating PyGithub.egg-info INFO : root : writing PyGithub.egg-info/PKG-INFO INFO : root : writing dependency_links to PyGithub.egg-info/dependency_links.txt INFO : root : writing requirements to PyGithub.egg-info/requires.txt INFO : root : writing top-level names to PyGithub.egg-info/top_level.txt INFO : root : writing manifest file 'PyGithub.egg-info/SOURCES.txt' ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any INFO : root : reading manifest file 'PyGithub.egg-info/SOURCES.txt' INFO : root : adding license file 'COPYING' INFO : root : adding license file 'COPYING.LESSER' INFO : root : writing manifest file 'PyGithub.egg-info/SOURCES.txt' INFO : root : copying github/py.typed -> build/lib/github INFO : root : installing to build/bdist.linux-x86_64/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-x86_64/wheel INFO : root : creating build/bdist.linux-x86_64/wheel/github INFO : root : copying build/lib/github/AccessToken.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AdvisoryBase.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AdvisoryCredit.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AdvisoryCreditDetailed.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AdvisoryVulnerability.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AdvisoryVulnerabilityPackage.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AppAuthentication.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/ApplicationOAuth.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Artifact.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Auth.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AuthenticatedUser.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Authorization.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/AuthorizationApplication.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Autolink.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Branch.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/BranchProtection.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CVSS.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CWE.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CheckRun.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CheckRunAnnotation.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CheckRunOutput.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CheckSuite.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Clones.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CodeScanAlert.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CodeScanAlertInstance.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CodeScanAlertInstanceLocation.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CodeScanRule.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CodeScanTool.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Commit.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CommitCombinedStatus.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CommitComment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CommitStats.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/CommitStatus.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Comparison.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Consts.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/ContentFile.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DependabotAlert.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DependabotAlertAdvisory.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DependabotAlertDependency.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DependabotAlertVulnerability.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Deployment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DeploymentStatus.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DiscussionBase.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/DiscussionCommentBase.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Download.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Enterprise.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/EnterpriseConsumedLicenses.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Environment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/EnvironmentDeploymentBranchPolicy.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/EnvironmentProtectionRule.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/EnvironmentProtectionRuleReviewer.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Event.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/File.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Gist.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GistComment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GistFile.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GistHistoryState.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitAuthor.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitBlob.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitCommit.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitObject.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitRef.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitRelease.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitReleaseAsset.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitTag.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitTree.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitTreeElement.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GithubApp.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GithubException.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GithubIntegration.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GithubObject.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GithubRetry.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GitignoreTemplate.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/GlobalAdvisory.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Hook.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/HookDelivery.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/HookDescription.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/HookResponse.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/InputFileContent.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/InputGitAuthor.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/InputGitTreeElement.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Installation.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/InstallationAuthorization.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Invitation.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Issue.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/IssueComment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/IssueEvent.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/IssuePullRequest.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Label.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/License.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/MainClass.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Membership.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Migration.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Milestone.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/NamedEnterpriseUser.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/NamedUser.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Notification.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/NotificationSubject.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Organization.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/OrganizationCustomProperty.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/OrganizationDependabotAlert.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/OrganizationSecret.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/OrganizationVariable.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PaginatedList.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Path.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Permissions.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Plan.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Project.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/ProjectCard.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/ProjectColumn.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PublicKey.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PullRequest.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PullRequestComment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PullRequestMergeStatus.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PullRequestPart.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/PullRequestReview.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Rate.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RateLimit.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Reaction.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Referrer.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Repository.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RepositoryAdvisory.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RepositoryDiscussion.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RepositoryDiscussionCategory.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RepositoryDiscussionComment.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RepositoryKey.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RepositoryPreferences.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Requester.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RequiredPullRequestReviews.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/RequiredStatusChecks.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Secret.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/SecurityAndAnalysis.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/SecurityAndAnalysisFeature.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/SelfHostedActionsRunner.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/SourceImport.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Stargazer.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/StatsCodeFrequency.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/StatsCommitActivity.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/StatsContributor.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/StatsParticipation.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/StatsPunchCard.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Tag.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Team.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/TeamDiscussion.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/TimelineEvent.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/TimelineEventSource.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Topic.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/UserKey.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Variable.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/View.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/Workflow.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/WorkflowJob.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/WorkflowRun.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/WorkflowStep.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/__init__.py -> build/bdist.linux-x86_64/wheel/./github INFO : root : copying build/lib/github/py.typed -> build/bdist.linux-x86_64/wheel/./github INFO : root : running install_egg_info INFO : root : Copying PyGithub.egg-info to build/bdist.linux-x86_64/wheel/./PyGithub-2.5.0-py3.12.egg-info INFO : root : running install_scripts INFO : root : creating build/bdist.linux-x86_64/wheel/PyGithub-2.5.0.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/dist/.tmp-b2l08njl/PyGithub-2.5.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it INFO : wheel : adding 'github/AccessToken.py' INFO : wheel : adding 'github/AdvisoryBase.py' INFO : wheel : adding 'github/AdvisoryCredit.py' INFO : wheel : adding 'github/AdvisoryCreditDetailed.py' INFO : wheel : adding 'github/AdvisoryVulnerability.py' INFO : wheel : adding 'github/AdvisoryVulnerabilityPackage.py' INFO : wheel : adding 'github/AppAuthentication.py' INFO : wheel : adding 'github/ApplicationOAuth.py' INFO : wheel : adding 'github/Artifact.py' INFO : wheel : adding 'github/Auth.py' INFO : wheel : adding 'github/AuthenticatedUser.py' INFO : wheel : adding 'github/Authorization.py' INFO : wheel : adding 'github/AuthorizationApplication.py' INFO : wheel : adding 'github/Autolink.py' INFO : wheel : adding 'github/Branch.py' INFO : wheel : adding 'github/BranchProtection.py' INFO : wheel : adding 'github/CVSS.py' INFO : wheel : adding 'github/CWE.py' INFO : wheel : adding 'github/CheckRun.py' INFO : wheel : adding 'github/CheckRunAnnotation.py' INFO : wheel : adding 'github/CheckRunOutput.py' INFO : wheel : adding 'github/CheckSuite.py' INFO : wheel : adding 'github/Clones.py' INFO : wheel : adding 'github/CodeScanAlert.py' INFO : wheel : adding 'github/CodeScanAlertInstance.py' INFO : wheel : adding 'github/CodeScanAlertInstanceLocation.py' INFO : wheel : adding 'github/CodeScanRule.py' INFO : wheel : adding 'github/CodeScanTool.py' INFO : wheel : adding 'github/Commit.py' INFO : wheel : adding 'github/CommitCombinedStatus.py' INFO : wheel : adding 'github/CommitComment.py' INFO : wheel : adding 'github/CommitStats.py' INFO : wheel : adding 'github/CommitStatus.py' INFO : wheel : adding 'github/Comparison.py' INFO : wheel : adding 'github/Consts.py' INFO : wheel : adding 'github/ContentFile.py' INFO : wheel : adding 'github/DependabotAlert.py' INFO : wheel : adding 'github/DependabotAlertAdvisory.py' INFO : wheel : adding 'github/DependabotAlertDependency.py' INFO : wheel : adding 'github/DependabotAlertVulnerability.py' INFO : wheel : adding 'github/Deployment.py' INFO : wheel : adding 'github/DeploymentStatus.py' INFO : wheel : adding 'github/DiscussionBase.py' INFO : wheel : adding 'github/DiscussionCommentBase.py' INFO : wheel : adding 'github/Download.py' INFO : wheel : adding 'github/Enterprise.py' INFO : wheel : adding 'github/EnterpriseConsumedLicenses.py' INFO : wheel : adding 'github/Environment.py' INFO : wheel : adding 'github/EnvironmentDeploymentBranchPolicy.py' INFO : wheel : adding 'github/EnvironmentProtectionRule.py' INFO : wheel : adding 'github/EnvironmentProtectionRuleReviewer.py' INFO : wheel : adding 'github/Event.py' INFO : wheel : adding 'github/File.py' INFO : wheel : adding 'github/Gist.py' INFO : wheel : adding 'github/GistComment.py' INFO : wheel : adding 'github/GistFile.py' INFO : wheel : adding 'github/GistHistoryState.py' INFO : wheel : adding 'github/GitAuthor.py' INFO : wheel : adding 'github/GitBlob.py' INFO : wheel : adding 'github/GitCommit.py' INFO : wheel : adding 'github/GitObject.py' INFO : wheel : adding 'github/GitRef.py' INFO : wheel : adding 'github/GitRelease.py' INFO : wheel : adding 'github/GitReleaseAsset.py' INFO : wheel : adding 'github/GitTag.py' INFO : wheel : adding 'github/GitTree.py' INFO : wheel : adding 'github/GitTreeElement.py' INFO : wheel : adding 'github/GithubApp.py' INFO : wheel : adding 'github/GithubException.py' INFO : wheel : adding 'github/GithubIntegration.py' INFO : wheel : adding 'github/GithubObject.py' INFO : wheel : adding 'github/GithubRetry.py' INFO : wheel : adding 'github/GitignoreTemplate.py' INFO : wheel : adding 'github/GlobalAdvisory.py' INFO : wheel : adding 'github/Hook.py' INFO : wheel : adding 'github/HookDelivery.py' INFO : wheel : adding 'github/HookDescription.py' INFO : wheel : adding 'github/HookResponse.py' INFO : wheel : adding 'github/InputFileContent.py' INFO : wheel : adding 'github/InputGitAuthor.py' INFO : wheel : adding 'github/InputGitTreeElement.py' INFO : wheel : adding 'github/Installation.py' INFO : wheel : adding 'github/InstallationAuthorization.py' INFO : wheel : adding 'github/Invitation.py' INFO : wheel : adding 'github/Issue.py' INFO : wheel : adding 'github/IssueComment.py' INFO : wheel : adding 'github/IssueEvent.py' INFO : wheel : adding 'github/IssuePullRequest.py' INFO : wheel : adding 'github/Label.py' INFO : wheel : adding 'github/License.py' INFO : wheel : adding 'github/MainClass.py' INFO : wheel : adding 'github/Membership.py' INFO : wheel : adding 'github/Migration.py' INFO : wheel : adding 'github/Milestone.py' INFO : wheel : adding 'github/NamedEnterpriseUser.py' INFO : wheel : adding 'github/NamedUser.py' INFO : wheel : adding 'github/Notification.py' INFO : wheel : adding 'github/NotificationSubject.py' INFO : wheel : adding 'github/Organization.py' INFO : wheel : adding 'github/OrganizationCustomProperty.py' INFO : wheel : adding 'github/OrganizationDependabotAlert.py' INFO : wheel : adding 'github/OrganizationSecret.py' INFO : wheel : adding 'github/OrganizationVariable.py' INFO : wheel : adding 'github/PaginatedList.py' INFO : wheel : adding 'github/Path.py' INFO : wheel : adding 'github/Permissions.py' INFO : wheel : adding 'github/Plan.py' INFO : wheel : adding 'github/Project.py' INFO : wheel : adding 'github/ProjectCard.py' INFO : wheel : adding 'github/ProjectColumn.py' INFO : wheel : adding 'github/PublicKey.py' INFO : wheel : adding 'github/PullRequest.py' INFO : wheel : adding 'github/PullRequestComment.py' INFO : wheel : adding 'github/PullRequestMergeStatus.py' INFO : wheel : adding 'github/PullRequestPart.py' INFO : wheel : adding 'github/PullRequestReview.py' INFO : wheel : adding 'github/Rate.py' INFO : wheel : adding 'github/RateLimit.py' INFO : wheel : adding 'github/Reaction.py' INFO : wheel : adding 'github/Referrer.py' INFO : wheel : adding 'github/Repository.py' INFO : wheel : adding 'github/RepositoryAdvisory.py' INFO : wheel : adding 'github/RepositoryDiscussion.py' INFO : wheel : adding 'github/RepositoryDiscussionCategory.py' INFO : wheel : adding 'github/RepositoryDiscussionComment.py' INFO : wheel : adding 'github/RepositoryKey.py' INFO : wheel : adding 'github/RepositoryPreferences.py' INFO : wheel : adding 'github/Requester.py' INFO : wheel : adding 'github/RequiredPullRequestReviews.py' INFO : wheel : adding 'github/RequiredStatusChecks.py' INFO : wheel : adding 'github/Secret.py' INFO : wheel : adding 'github/SecurityAndAnalysis.py' INFO : wheel : adding 'github/SecurityAndAnalysisFeature.py' INFO : wheel : adding 'github/SelfHostedActionsRunner.py' INFO : wheel : adding 'github/SourceImport.py' INFO : wheel : adding 'github/Stargazer.py' INFO : wheel : adding 'github/StatsCodeFrequency.py' INFO : wheel : adding 'github/StatsCommitActivity.py' INFO : wheel : adding 'github/StatsContributor.py' INFO : wheel : adding 'github/StatsParticipation.py' INFO : wheel : adding 'github/StatsPunchCard.py' INFO : wheel : adding 'github/Tag.py' INFO : wheel : adding 'github/Team.py' INFO : wheel : adding 'github/TeamDiscussion.py' INFO : wheel : adding 'github/TimelineEvent.py' INFO : wheel : adding 'github/TimelineEventSource.py' INFO : wheel : adding 'github/Topic.py' INFO : wheel : adding 'github/UserKey.py' INFO : wheel : adding 'github/Variable.py' INFO : wheel : adding 'github/View.py' INFO : wheel : adding 'github/Workflow.py' INFO : wheel : adding 'github/WorkflowJob.py' INFO : wheel : adding 'github/WorkflowRun.py' INFO : wheel : adding 'github/WorkflowStep.py' INFO : wheel : adding 'github/__init__.py' INFO : wheel : adding 'github/py.typed' INFO : wheel : adding 'PyGithub-2.5.0.dist-info/COPYING' INFO : wheel : adding 'PyGithub-2.5.0.dist-info/COPYING.LESSER' INFO : wheel : adding 'PyGithub-2.5.0.dist-info/METADATA' INFO : wheel : adding 'PyGithub-2.5.0.dist-info/WHEEL' INFO : wheel : adding 'PyGithub-2.5.0.dist-info/top_level.txt' INFO : wheel : adding 'PyGithub-2.5.0.dist-info/RECORD' INFO : root : removing build/bdist.linux-x86_64/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: PyGithub-2.5.0-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.49190 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-PyGithub-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-PyGithub-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-PyGithub-2.5.0 + export SETUPTOOLS_SCM_PRETEND_VERSION=2.5.0 + SETUPTOOLS_SCM_PRETEND_VERSION=2.5.0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-PyGithub-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: PyGithub-2.5.0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-PyGithub-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-PyGithub-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: PyGithub-2.5.0.dist-info/COPYING DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: PyGithub-2.5.0.dist-info/COPYING.LESSER DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: PyGithub-2.5.0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: PyGithub-2.5.0.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: PyGithub-2.5.0.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-PyGithub-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-PyGithub-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-PyGithub-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-PyGithub-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-PyGithub-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-PyGithub-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-PyGithub-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-PyGithub-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AccessToken.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryCredit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryCreditDetailed.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryVulnerability.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryVulnerabilityPackage.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AppAuthentication.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ApplicationOAuth.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Artifact.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Auth.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AuthenticatedUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Authorization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AuthorizationApplication.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Autolink.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Branch.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/BranchProtection.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CVSS.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CWE.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRun.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRunAnnotation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRunOutput.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckSuite.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Clones.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlertInstance.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlertInstanceLocation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanRule.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanTool.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Commit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitCombinedStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitStats.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Comparison.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Consts.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ContentFile.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertDependency.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertVulnerability.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Deployment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DeploymentStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DiscussionBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DiscussionCommentBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Download.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Enterprise.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnterpriseConsumedLicenses.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Environment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentDeploymentBranchPolicy.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentProtectionRule.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentProtectionRuleReviewer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Event.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/File.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Gist.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistFile.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistHistoryState.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitAuthor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitBlob.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitCommit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitObject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitRef.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitRelease.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitReleaseAsset.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTag.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTree.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTreeElement.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubApp.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubException.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubIntegration.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubObject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubRetry.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitignoreTemplate.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GlobalAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Hook.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookDelivery.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookDescription.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookResponse.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputFileContent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputGitAuthor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputGitTreeElement.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Installation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InstallationAuthorization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Invitation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Issue.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssueComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssueEvent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssuePullRequest.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Label.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/License.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/MainClass.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Membership.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Migration.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Milestone.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NamedEnterpriseUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NamedUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Notification.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NotificationSubject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Organization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationCustomProperty.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationDependabotAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationSecret.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationVariable.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PaginatedList.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Path.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Permissions.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Plan.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Project.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ProjectCard.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ProjectColumn.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PublicKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequest.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestMergeStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestPart.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestReview.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Rate.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RateLimit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Reaction.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Referrer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Repository.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussion.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussionCategory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussionComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryPreferences.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Requester.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RequiredPullRequestReviews.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RequiredStatusChecks.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Secret.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SecurityAndAnalysis.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SecurityAndAnalysisFeature.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SelfHostedActionsRunner.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SourceImport.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Stargazer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsCodeFrequency.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsCommitActivity.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsContributor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsParticipation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsPunchCard.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Tag.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Team.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TeamDiscussion.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TimelineEvent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TimelineEventSource.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Topic.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/UserKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Variable.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/View.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Workflow.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowJob.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowRun.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowStep.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-PyGithub-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AccessToken.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryCredit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryCreditDetailed.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryVulnerability.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryVulnerabilityPackage.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AppAuthentication.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ApplicationOAuth.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Artifact.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Auth.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AuthenticatedUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Authorization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AuthorizationApplication.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Autolink.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Branch.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/BranchProtection.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CVSS.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CWE.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRun.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRunAnnotation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRunOutput.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckSuite.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Clones.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlertInstance.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlertInstanceLocation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanRule.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanTool.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Commit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitCombinedStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitStats.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Comparison.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Consts.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ContentFile.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertDependency.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertVulnerability.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Deployment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DeploymentStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DiscussionBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DiscussionCommentBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Download.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Enterprise.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnterpriseConsumedLicenses.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Environment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentDeploymentBranchPolicy.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentProtectionRule.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentProtectionRuleReviewer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Event.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/File.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Gist.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistFile.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistHistoryState.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitAuthor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitBlob.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitCommit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitObject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitRef.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitRelease.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitReleaseAsset.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTag.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTree.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTreeElement.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubApp.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubException.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubIntegration.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubObject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubRetry.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitignoreTemplate.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GlobalAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Hook.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookDelivery.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookDescription.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookResponse.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputFileContent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputGitAuthor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputGitTreeElement.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Installation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InstallationAuthorization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Invitation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Issue.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssueComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssueEvent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssuePullRequest.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Label.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/License.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/MainClass.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Membership.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Migration.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Milestone.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NamedEnterpriseUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NamedUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Notification.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NotificationSubject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Organization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationCustomProperty.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationDependabotAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationSecret.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationVariable.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PaginatedList.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Path.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Permissions.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Plan.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Project.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ProjectCard.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ProjectColumn.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PublicKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequest.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestMergeStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestPart.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestReview.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Rate.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RateLimit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Reaction.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Referrer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Repository.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussion.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussionCategory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussionComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryPreferences.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Requester.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RequiredPullRequestReviews.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RequiredStatusChecks.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Secret.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SecurityAndAnalysis.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SecurityAndAnalysisFeature.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SelfHostedActionsRunner.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SourceImport.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Stargazer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsCodeFrequency.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsCommitActivity.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsContributor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsParticipation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsPunchCard.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Tag.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Team.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TeamDiscussion.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TimelineEvent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TimelineEventSource.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Topic.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/UserKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Variable.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/View.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Workflow.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowJob.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowRun.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowStep.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-PyGithub-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AccessToken.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryCredit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryCreditDetailed.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryVulnerability.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AdvisoryVulnerabilityPackage.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AppAuthentication.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ApplicationOAuth.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Artifact.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Auth.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AuthenticatedUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Authorization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/AuthorizationApplication.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Autolink.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Branch.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/BranchProtection.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CVSS.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CWE.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRun.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRunAnnotation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckRunOutput.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CheckSuite.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Clones.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlertInstance.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanAlertInstanceLocation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanRule.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CodeScanTool.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Commit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitCombinedStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitStats.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/CommitStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Comparison.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Consts.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ContentFile.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertDependency.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DependabotAlertVulnerability.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Deployment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DeploymentStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DiscussionBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/DiscussionCommentBase.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Download.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Enterprise.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnterpriseConsumedLicenses.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Environment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentDeploymentBranchPolicy.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentProtectionRule.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/EnvironmentProtectionRuleReviewer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Event.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/File.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Gist.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistFile.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GistHistoryState.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitAuthor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitBlob.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitCommit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitObject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitRef.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitRelease.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitReleaseAsset.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTag.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTree.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitTreeElement.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubApp.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubException.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubIntegration.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubObject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GithubRetry.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GitignoreTemplate.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/GlobalAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Hook.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookDelivery.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookDescription.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/HookResponse.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputFileContent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputGitAuthor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InputGitTreeElement.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Installation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/InstallationAuthorization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Invitation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Issue.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssueComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssueEvent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/IssuePullRequest.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Label.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/License.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/MainClass.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Membership.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Migration.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Milestone.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NamedEnterpriseUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NamedUser.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Notification.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/NotificationSubject.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Organization.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationCustomProperty.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationDependabotAlert.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationSecret.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/OrganizationVariable.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PaginatedList.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Path.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Permissions.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Plan.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Project.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ProjectCard.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/ProjectColumn.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PublicKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequest.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestMergeStatus.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestPart.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/PullRequestReview.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Rate.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RateLimit.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Reaction.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Referrer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Repository.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryAdvisory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussion.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussionCategory.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryDiscussionComment.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RepositoryPreferences.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Requester.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RequiredPullRequestReviews.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/RequiredStatusChecks.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Secret.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SecurityAndAnalysis.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SecurityAndAnalysisFeature.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SelfHostedActionsRunner.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/SourceImport.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Stargazer.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsCodeFrequency.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsCommitActivity.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsContributor.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsParticipation.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/StatsPunchCard.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Tag.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Team.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TeamDiscussion.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TimelineEvent.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/TimelineEventSource.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Topic.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/UserKey.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Variable.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/View.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/Workflow.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowJob.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowRun.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/WorkflowStep.py compile /usr/src/tmp/python3-module-PyGithub-buildroot/usr/lib/python3/site-packages/github/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/github/__pycache__/AccessToken.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/AccessToken.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/AdvisoryCreditDetailed.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/AdvisoryCreditDetailed.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/AdvisoryVulnerabilityPackage.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/AdvisoryVulnerabilityPackage.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/AppAuthentication.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/AppAuthentication.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/AppAuthentication.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/github/__pycache__/AppAuthentication.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/github/__pycache__/AuthorizationApplication.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/AuthorizationApplication.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Autolink.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Autolink.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/BranchProtection.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/BranchProtection.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CVSS.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CVSS.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CWE.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CWE.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CheckRunAnnotation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CheckRunAnnotation.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CheckRunOutput.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CheckRunOutput.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Clones.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Clones.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CodeScanAlert.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CodeScanAlert.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CodeScanAlertInstance.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CodeScanAlertInstance.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CodeScanAlertInstanceLocation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CodeScanAlertInstanceLocation.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CodeScanRule.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CodeScanRule.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CodeScanTool.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CodeScanTool.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CommitCombinedStatus.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CommitCombinedStatus.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CommitStats.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CommitStats.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/CommitStatus.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/CommitStatus.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Comparison.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Comparison.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Consts.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Consts.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Consts.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Consts.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/github/__pycache__/DependabotAlert.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DependabotAlert.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/DependabotAlertAdvisory.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DependabotAlertAdvisory.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/DependabotAlertDependency.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DependabotAlertDependency.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/DependabotAlertVulnerability.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DependabotAlertVulnerability.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/DeploymentStatus.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DeploymentStatus.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/DiscussionBase.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DiscussionBase.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/DiscussionCommentBase.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/DiscussionCommentBase.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Download.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Download.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Enterprise.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Enterprise.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/EnterpriseConsumedLicenses.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/EnterpriseConsumedLicenses.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/EnvironmentProtectionRule.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/EnvironmentProtectionRule.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Event.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Event.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/File.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/File.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GistFile.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GistFile.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GistHistoryState.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GistHistoryState.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitAuthor.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitAuthor.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitBlob.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitBlob.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitCommit.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitCommit.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitObject.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitObject.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitTag.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitTag.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitTree.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitTree.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitTreeElement.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitTreeElement.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GithubApp.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GithubApp.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GithubException.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GithubException.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GithubObject.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GithubObject.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GithubRetry.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GithubRetry.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/GitignoreTemplate.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/GitignoreTemplate.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/HookDelivery.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/HookDelivery.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/HookDescription.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/HookDescription.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/HookResponse.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/HookResponse.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Installation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Installation.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/InstallationAuthorization.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/InstallationAuthorization.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Invitation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Invitation.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/IssueEvent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/IssueEvent.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/IssuePullRequest.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/IssuePullRequest.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/License.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/License.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Membership.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Membership.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/NamedEnterpriseUser.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/NamedEnterpriseUser.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Notification.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Notification.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/NotificationSubject.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/NotificationSubject.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/OrganizationDependabotAlert.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/OrganizationDependabotAlert.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Path.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Path.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Permissions.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Permissions.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Plan.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Plan.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/PublicKey.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/PublicKey.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/PullRequestMergeStatus.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/PullRequestMergeStatus.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/PullRequestPart.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/PullRequestPart.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Rate.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Rate.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RateLimit.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RateLimit.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Reaction.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Reaction.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Referrer.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Referrer.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RepositoryDiscussion.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RepositoryDiscussion.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RepositoryDiscussionCategory.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RepositoryDiscussionCategory.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RepositoryDiscussionComment.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RepositoryDiscussionComment.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RepositoryPreferences.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RepositoryPreferences.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RequiredPullRequestReviews.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RequiredPullRequestReviews.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/RequiredStatusChecks.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/RequiredStatusChecks.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Secret.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Secret.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/SecurityAndAnalysis.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/SecurityAndAnalysis.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/SecurityAndAnalysisFeature.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/SecurityAndAnalysisFeature.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/SelfHostedActionsRunner.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/SelfHostedActionsRunner.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/SourceImport.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/SourceImport.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Stargazer.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Stargazer.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/StatsCodeFrequency.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/StatsCodeFrequency.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/StatsCommitActivity.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/StatsCommitActivity.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/StatsContributor.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/StatsContributor.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/StatsParticipation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/StatsParticipation.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/StatsPunchCard.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/StatsPunchCard.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Tag.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Tag.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/TeamDiscussion.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/TeamDiscussion.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/TimelineEvent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/TimelineEvent.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/TimelineEventSource.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/TimelineEventSource.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/Topic.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/Topic.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/UserKey.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/UserKey.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/View.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/View.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/WorkflowJob.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/WorkflowJob.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/WorkflowStep.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/WorkflowStep.cpython-312.pyc' './usr/lib/python3/site-packages/github/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/github/__pycache__/__init__.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.87476 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-PyGithub-2.5.0 ++ cat ./dist/.wheeltracker + _tox_wheel=PyGithub-2.5.0-py3-none-any.whl + export NO_INTERNET=YES + NO_INTERNET=YES + export PIP_NO_BUILD_ISOLATION=NO + PIP_NO_BUILD_ISOLATION=NO + export PIP_NO_INDEX=YES + PIP_NO_INDEX=YES + export TOXENV=py3 + TOXENV=py3 + export TOX_TESTENV_PASSENV=NO_INTERNET + TOX_TESTENV_PASSENV=NO_INTERNET + /usr/bin/tox.py3 --sitepackages -vvr -s false --no-deps --console-scripts --installpkg=./dist/PyGithub-2.5.0-py3-none-any.whl using tox.ini: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/tox.ini (pid 3621920) no-deps plugin: deps: '[-rrequirements/types.txt, pre-commit]' will be skipped for 'lint' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'py38' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'py39' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'py310' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'py311' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'py312' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'docs' no-deps plugin: deps: '[-rrequirements/test.txt]' will be skipped for 'py3' using tox-3.27.1 from /usr/lib/python3/site-packages/tox/__init__.py (pid 3621920) using package '/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/dist/PyGithub-2.5.0-py3-none-any.whl', skipping 'sdist' activity package .tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl links to dist/PyGithub-2.5.0-py3-none-any.whl (/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0) py3 uses /usr/bin/python3 py3 start: getenv /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3 py3 cannot reuse: -r flag py3 create: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3 setting PATH=/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3622428] /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox$ /usr/bin/python3 -m virtualenv --system-site-packages --no-download --python /usr/bin/python3 py3 created virtual environment CPython3.12.8.final.0-64 in 129ms creator CPython3Posix(dest=/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3, clear=False, no_vcs_ignore=False, global=True) seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/usr/src/.local/share/virtualenv) added seed packages: pip==24.3.1 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator setting PATH=/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3623290] /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0$ /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin/python /usr/lib/python3/site-packages/tox_console_scripts/helper/console_scripts.py Generating script wheel into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script normalizer into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script coverage into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script coverage-3.12 into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script coverage3 into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script py3prov into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script py3req into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script py.test into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script pytest into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script virtualenv into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script tox into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin Generating script tox-quickstart into /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin py3 finish: getenv /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3 after 0.33 seconds py3 start: installpkg /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl py3 inst: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl write config to /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/.tox-config1 as '3f13ec30a07a94eaf6eed530d1311c17773b9537ebca88bf77554083b4ee17aa /usr/bin/python3\n3.27.1 1 0 0' setting PATH=/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3623685] /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0$ /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin/python -m pip install --exists-action w .tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl Processing ./.tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl Requirement already satisfied: pynacl>=1.4.0 in /usr/lib64/python3/site-packages (from PyGithub==2.5.0) (1.5.0) Requirement already satisfied: requests>=2.14.0 in /usr/lib/python3/site-packages (from PyGithub==2.5.0) (2.32.3) Requirement already satisfied: pyjwt>=2.4.0 in /usr/lib/python3/site-packages (from pyjwt[crypto]>=2.4.0->PyGithub==2.5.0) (2.8.0) Requirement already satisfied: typing-extensions>=4.0.0 in /usr/lib/python3/site-packages (from PyGithub==2.5.0) (4.12.2) Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/site-packages (from PyGithub==2.5.0) (2.3.0) Requirement already satisfied: Deprecated in /usr/lib/python3/site-packages (from PyGithub==2.5.0) (1.2.15) Requirement already satisfied: cryptography>=3.4.0 in /usr/lib64/python3/site-packages (from pyjwt[crypto]>=2.4.0->PyGithub==2.5.0) (43.0.0) Requirement already satisfied: cffi>=1.4.1 in /usr/lib64/python3/site-packages (from pynacl>=1.4.0->PyGithub==2.5.0) (1.17.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/lib64/python3/site-packages (from requests>=2.14.0->PyGithub==2.5.0) (3.2.0) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/site-packages (from requests>=2.14.0->PyGithub==2.5.0) (3.10) Requirement already satisfied: wrapt<2,>=1.10 in /usr/lib64/python3/site-packages (from Deprecated->PyGithub==2.5.0) (1.17.0) Requirement already satisfied: pycparser in /usr/lib/python3/site-packages (from cffi>=1.4.1->pynacl>=1.4.0->PyGithub==2.5.0) (2.21) Installing collected packages: PyGithub Successfully installed PyGithub-2.5.0 py3 finish: installpkg /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl after 0.87 seconds py3 start: envreport setting PATH=/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3627625] /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0$ /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin/python -m pip freeze >.tox/py3/log/py3-0.log py3 finish: envreport after 0.21 seconds py3 installed: apipkg==3.0.2,autocommand==2.2.2,cffi==1.17.1,charset-normalizer==3.2.0,coverage==7.3.2,cryptography==43.0.0,Deprecated==1.2.15,distlib==0.3.9,filelock==3.16.1,httpretty==1.1.4,idna==3.10,iniconfig==2.0.0,jaraco.collections==5.1.0,jaraco.context==6.0.1,jaraco.functools==4.1.0,jaraco.text==4.0.0,mercurial==6.9,more-itertools==10.5.0,packaging==24.2,platformdirs==4.3.6,pluggy==1.5.0,py==1.11.0,py3dephell==0.3.1,pycparser==2.21,PyGithub @ file:///usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl#sha256=83619f5e18764fbbe290595846c75e0257b809f003bdcd1a3d066cdb5cf0de3b,PyJWT==2.8.0,PyNaCl==1.5.0,pyproject-installer==0.5.5,pytest==8.3.4,pytest-cov==5.0.0,python-dateutil==2.8.3,requests==2.32.3,setuptools==75.6.0,setuptools-scm==8.1.0,six==1.17.0,tox==3.27.1,tox-console-scripts==0.3.2,tox-no-deps==0.2.0,typing_extensions==4.12.2,urllib3==2.3.0,virtualenv==20.28.0,wheel==0.45.1,wrapt==1.17.0 py3 start: run-test-pre py3 run-test-pre: PYTHONHASHSEED='4186966040' py3 finish: run-test-pre after 0.00 seconds py3 start: run-test py3 run-test: commands[0] | pytest --cov=github --cov-report=xml setting PATH=/usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3628151] /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0$ /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin/pytest --cov=github --cov-report=xml ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 cachedir: .tox/py3/.pytest_cache rootdir: /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0 configfile: pyproject.toml plugins: cov-5.0.0 collected 966 items tests/ApplicationOAuth.py .F..FFFF.FFF [ 1%] tests/Artifact.py FFFFFF [ 1%] tests/AuthenticatedUser.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 6%]  [ 6%] tests/Authentication.py .F..FFF.FFFF..FF..FFFF [ 8%] tests/Authorization.py FFF [ 9%] tests/Autolink.py F [ 9%] tests/BadAttributes.py FFFFFFFF [ 10%] tests/Branch.py FFFFFFFFFFFFFFFFFFFFFFFF [ 12%] tests/BranchProtection.py F [ 12%] tests/CheckRun.py FFFFFFFFFFFFF [ 13%] tests/CheckSuite.py FFFFFFFFFFF [ 15%] tests/Commit.py FFFFFFFF [ 15%] tests/CommitCombinedStatus.py F [ 16%] tests/CommitComment.py FFFFFF [ 16%] tests/CommitStatus.py F [ 16%] tests/ConditionalRequestUpdate.py FFF [ 17%] tests/Connection.py FFFFFFFF [ 17%] tests/ContentFile.py F [ 18%] tests/DependabotAlert.py FFFFFFF [ 18%] tests/Deployment.py F [ 18%] tests/DeploymentStatus.py FFF [ 19%] tests/Download.py FF [ 19%] tests/Enterprise.py FFFF. [ 19%] tests/EnterpriseAdmin.py .FF [ 20%] tests/Environment.py FFFFFFFFFFF [ 21%] tests/Equality.py FFF [ 21%] tests/Event.py F [ 21%] tests/Exceptions.py F.FFFFFFFFF.FF [ 23%] tests/ExposeAllAttributes.py F [ 23%] tests/Gist.py FFFFFFFFFF [ 24%] tests/GistComment.py FFF [ 24%] tests/GitBlob.py F [ 24%] tests/GitCommit.py F [ 24%] tests/GitMembership.py F [ 24%] tests/GitRef.py FFFF [ 25%] tests/GitRelease.py FFFFFFFFFFF [ 26%] tests/GitTag.py F [ 26%] tests/GitTree.py F [ 26%] tests/GithubApp.py FF [ 26%] tests/GithubIntegration.py FFFFF.FFFFFFFFFF.. [ 28%] tests/GithubObject.py ........ [ 29%] tests/GithubRetry.py ............. [ 30%] tests/Github_.py FFFFFFFFFFFFFFFFFFFFFFFFF.. [ 33%] tests/GlobalAdvisory.py FF [ 33%] tests/GraphQl.py FFFFFFFFFFF. [ 35%] tests/Hook.py FFFFFF [ 35%] tests/Installation.py FFF [ 36%] tests/Issue.py FFFFFFFFFFFFFFFFFFFFFFF [ 38%] tests/Issue131.py FF [ 38%] tests/Issue133.py F [ 38%] tests/Issue134.py FFF [ 39%] tests/Issue139.py F [ 39%] tests/Issue140.py FFF [ 39%] tests/Issue142.py F [ 39%] tests/Issue174.py F [ 39%] tests/Issue2030.py F [ 39%] tests/Issue214.py FFFFF [ 40%] tests/Issue216.py F [ 40%] tests/Issue278.py F [ 40%] tests/Issue33.py FF [ 40%] tests/Issue494.py F [ 40%] tests/Issue50.py FFFFFFFFFF [ 41%] tests/Issue54.py F [ 42%] tests/Issue572.py FF [ 42%] tests/Issue80.py FF [ 42%] tests/Issue823.py F [ 42%] tests/Issue87.py FFFF [ 42%] tests/Issue937.py F [ 43%] tests/Issue945.py F [ 43%] tests/IssueComment.py FFFFFFFF [ 43%] tests/IssueEvent.py FFFFFFFFFFFFFFFFFFFFFFFFFFF [ 46%] tests/Label.py FFF [ 47%] tests/License.py F [ 47%] tests/Logging_.py .FFFF. [ 47%] tests/Markdown.py FF [ 48%] tests/Migration.py FFFFFFF [ 48%] tests/Milestone.py FFFFF [ 49%] tests/NamedUser.py FFFFFFFFFFFFFFFFFFFFF [ 51%] tests/NamedUser1430.py F [ 51%] tests/Notification.py FF [ 51%] tests/Organization.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 56%] FFFFFFFFFFFFFFFFFF [ 58%] tests/Organization1437.py F [ 58%] tests/Organization2072.py F [ 59%] tests/OrganizationHasInMembers.py F [ 59%] tests/PaginatedList.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 62%] tests/Permissions.py FF [ 62%] tests/Persistence.py FF [ 62%] tests/Pickle.py FFF [ 62%] tests/PoolSize.py FF [ 63%] tests/Project.py FFFFFFFFFFFFFFFF [ 64%] tests/Project1434.py FFF [ 65%] tests/ProjectColumn.py FFFFFFFFFFF [ 66%] tests/PublicKey.py FF [ 66%] tests/PullRequest.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 70%] tests/PullRequest1168.py FF [ 70%] tests/PullRequest1169.py F [ 70%] tests/PullRequest1375.py F [ 70%] tests/PullRequest1682.py FFF [ 71%] tests/PullRequest1684.py FFF [ 71%] tests/PullRequest2408.py F [ 71%] tests/PullRequestComment.py FFFFFF [ 72%] tests/PullRequestFile.py F [ 72%] tests/PullRequestReview.py FFFF [ 72%] tests/PullRequestReview1856.py F [ 72%] tests/RateLimiting.py FFF [ 72%] tests/RawData.py F.FF [ 73%] tests/Reaction.py FF [ 73%] tests/ReleaseAsset.py FFF [ 73%] tests/Repository.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 79%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 86%] FFFFFFFFFFFFFFFFFFFF [ 88%] tests/RepositoryAdvisory.py FFFFFFFFFF [ 89%] tests/RepositoryDiscussion.py FFFF [ 90%] tests/RepositoryKey.py FFF [ 90%] tests/Requester.py .FFFF......F..........FFF [ 93%] tests/RequiredPullRequestReviews.py FF [ 93%] tests/RequiredStatusChecks.py F [ 93%] tests/Retry.py FFFFF [ 93%] tests/Search.py FFFFFFFFFFFFFF [ 95%] tests/SecurityAndAnalysis.py FF [ 95%] tests/SelfHostedActionsRunner.py F [ 95%] tests/SourceImport.py FF [ 95%] tests/Tag.py F [ 96%] tests/Team.py FFFFFFFFFFF [ 97%] tests/Topic.py FF [ 97%] tests/Traffic.py FFFF [ 97%] tests/UserKey.py FF [ 98%] tests/Workflow.py FFFFFFFFFF [ 99%] tests/WorkflowJob.py F [ 99%] tests/WorkflowRun.py FFFFFFFF [100%] =================================== FAILURES =================================== ________________ ApplicationOAuth.testEnterpriseGetAccessToken _________________ self = def testEnterpriseGetAccessToken(self): > access_token = self.ent_app.get_access_token("oauth_code_removed", state="state_removed") tests/ApplicationOAuth.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:137: in get_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _____________________ ApplicationOAuth.testGetAccessToken ______________________ self = def testGetAccessToken(self): > access_token = self.app.get_access_token("oauth_code_removed", state="state_removed") tests/ApplicationOAuth.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:137: in get_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ ApplicationOAuth.testGetAccessTokenBadCode __________________ self = def testGetAccessTokenBadCode(self): with self.assertRaises(github.BadCredentialsException) as exc: > self.app.get_access_token("oauth_code_removed", state="state_removed") tests/ApplicationOAuth.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:137: in get_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ ApplicationOAuth.testGetAccessTokenUnknownError ________________ self = def testGetAccessTokenUnknownError(self): with self.assertRaises(github.GithubException) as exc: > self.app.get_access_token("oauth_code_removed", state="state_removed") tests/ApplicationOAuth.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:137: in get_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ ApplicationOAuth.testGetAccessTokenWithExpiry _________________ self = def testGetAccessTokenWithExpiry(self): with mock.patch("github.AccessToken.datetime") as dt: dt.now = mock.Mock(return_value=datetime(2023, 6, 7, 12, 0, 0, 123, tzinfo=timezone.utc)) > access_token = self.app.get_access_token("oauth_code_removed", state="state_removed") tests/ApplicationOAuth.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:137: in get_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ ApplicationOAuth.testRefreshAccessToken ____________________ self = def testRefreshAccessToken(self): > access_token = self.app.get_access_token("oauth_code_removed", state="state_removed") tests/ApplicationOAuth.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:137: in get_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ ApplicationOAuth.testRefreshAccessTokenBadCode ________________ self = def testRefreshAccessTokenBadCode(self): with self.assertRaises(github.BadCredentialsException) as exc: > self.app.refresh_access_token("oauth_code_removed") tests/ApplicationOAuth.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:178: in refresh_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ ApplicationOAuth.testRefreshAccessTokenUnknownError ______________ self = def testRefreshAccessTokenUnknownError(self): with self.assertRaises(github.GithubException) as exc: > self.app.refresh_access_token("oauth_code_removed") tests/ApplicationOAuth.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:178: in refresh_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Artifact.testDelete ______________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/Artifact.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Artifact.testGetArtifactsFromRepo _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/Artifact.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Artifact.testGetArtifactsFromRepoWithName ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/Artifact.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Artifact.testGetArtifactsFromWorkflow _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/Artifact.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Artifact.testGetNonexistentArtifact ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/Artifact.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Artifact.testGetSingleArtifactFromRepo ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/Artifact.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ AuthenticatedUser.testAcceptInvitation ____________________ self = def testAcceptInvitation(self): > self.assertEqual(self.user.accept_invitation(4294886), None) tests/AuthenticatedUser.py:756: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:1014: in accept_invitation headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:661: in patch return self.request("PATCH", url, data=data, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testAttributes _______________________ self = def testAttributes(self): self.assertEqual( > self.user.avatar_url, "https://secure.gravatar.com/avatar/b68de5ae38616c296fa345d2b9df2225?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png", ) tests/AuthenticatedUser.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:186: in avatar_url self._completeIfNotSet(self._avatar_url) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________ AuthenticatedUser.testCreateAuthorizationWithAllArguments ___________ self = def testCreateAuthorizationWithAllArguments(self): > authorization = self.user.create_authorization( ["repo"], "Note created by PyGithub", "http://vincent-jacques.net/PyGithub" ) tests/AuthenticatedUser.py:388: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:446: in create_authorization headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________ AuthenticatedUser.testCreateAuthorizationWithClientIdAndSecret ________ self = def testCreateAuthorizationWithClientIdAndSecret(self): # I don't have a client_id and client_secret so the ReplayData for this test is forged > authorization = self.user.create_authorization( client_id="01234567890123456789", client_secret="0123456789012345678901234567890123456789", ) tests/AuthenticatedUser.py:395: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:446: in create_authorization headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________ AuthenticatedUser.testCreateAuthorizationWithoutArguments ___________ self = def testCreateAuthorizationWithoutArguments(self): > authorization = self.user.create_authorization() tests/AuthenticatedUser.py:384: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:446: in create_authorization headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testCreateFork _______________________ self = def testCreateFork(self): > repo = self.user.create_fork(self.g.get_user("nvie").get_repo("gitflow")) tests/AuthenticatedUser.py:679: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testCreateGist _______________________ self = def testCreateGist(self): > gist = self.user.create_gist( True, {"foobar.txt": github.InputFileContent("File created by PyGithub")}, "Gist created by PyGithub", ) tests/AuthenticatedUser.py:402: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:522: in create_gist headers, data = self._requester.requestJsonAndCheck("POST", "/gists", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ AuthenticatedUser.testCreateGistWithoutDescription ______________ self = def testCreateGistWithoutDescription(self): > gist = self.user.create_gist(True, {"foobar.txt": github.InputFileContent("File created by PyGithub")}) tests/AuthenticatedUser.py:412: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:522: in create_gist headers, data = self._requester.requestJsonAndCheck("POST", "/gists", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testCreateKey ________________________ self = def testCreateKey(self): > key = self.user.create_key( "Key added through PyGithub", "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2Mm0RjTNAYFfSCtUpO54usdseroUSIYg5KX4JoseTpqyiB/hqewjYLAdUq/tNIQzrkoEJWSyZrQt0ma7/YCyMYuNGd3DU6q6ZAyBeY3E9RyCiKjO3aTL2VKQGFvBVVmGdxGVSCITRphAcsKc/PF35/fg9XP9S0anMXcEFtdfMHz41SSw+XtE+Vc+6cX9FuI5qUfLGbkv8L1v3g4uw9VXlzq4GfTA+1S7D6mcoGHopAIXFlVr+2RfDKdSURMcB22z41fljO1MW4+zUS/4FyUTpL991es5fcwKXYoiE+x06VJeJJ1Krwx+DZj45uweV6cHXt2JwJEI9fWB6WyBlDejWw== vincent@IDEE", ) tests/AuthenticatedUser.py:418: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:538: in create_key headers, data = self._requester.requestJsonAndCheck("POST", "/user/keys", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ AuthenticatedUser.testCreateMigration _____________________ self = def testCreateMigration(self): > self.assertTrue(isinstance(self.user.create_migration(["sample-repo"]), github.Migration.Migration)) tests/AuthenticatedUser.py:775: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:1050: in create_migration headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testCreateProject ______________________ self = def testCreateProject(self): > project = self.user.create_project(name="TestPyGithub", body="This is the body") tests/AuthenticatedUser.py:358: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:554: in create_project headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ AuthenticatedUser.testCreateRepoFromTemplate _________________ self = def testCreateRepoFromTemplate(self): > template_repo = self.g.get_repo("actions/hello-world-docker-action") tests/AuthenticatedUser.py:683: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________ AuthenticatedUser.testCreateRepoFromTemplateWithAllArguments _________ self = def testCreateRepoFromTemplateWithAllArguments(self): > template_repo = self.g.get_repo("actions/hello-world-docker-action") tests/AuthenticatedUser.py:693: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ AuthenticatedUser.testCreateRepository ____________________ self = def testCreateRepository(self): > repo = self.user.create_repo(name="TestPyGithub") tests/AuthenticatedUser.py:354: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:621: in create_repo headers, data = self._requester.requestJsonAndCheck("POST", "/user/repos", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ AuthenticatedUser.testCreateRepositoryWithAllArguments ____________ self = def testCreateRepositoryWithAllArguments(self): > repo = self.user.create_repo( name="TestPyGithub", description="Repo created by PyGithub", homepage="http://foobar.com", private=False, has_issues=False, has_projects=False, has_wiki=False, has_discussions=False, has_downloads=False, allow_squash_merge=False, allow_merge_commit=False, allow_rebase_merge=True, delete_branch_on_merge=False, ) tests/AuthenticatedUser.py:362: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:621: in create_repo headers, data = self._requester.requestJsonAndCheck("POST", "/user/repos", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ AuthenticatedUser.testCreateRepositoryWithAutoInit ______________ self = def testCreateRepositoryWithAutoInit(self): > repo = self.user.create_repo(name="TestPyGithub", auto_init=True, gitignore_template="Python") tests/AuthenticatedUser.py:380: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:621: in create_repo headers, data = self._requester.requestJsonAndCheck("POST", "/user/repos", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ AuthenticatedUser.testEditWithAllArguments __________________ self = def testEditWithAllArguments(self): > self.user.edit( "Name edited by PyGithub", "Email edited by PyGithub", "Blog edited by PyGithub", "Company edited by PyGithub", "Location edited by PyGithub", True, "Bio edited by PyGithub", ) tests/AuthenticatedUser.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:656: in edit headers, data = self._requester.requestJsonAndCheck("PATCH", "/user", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:661: in patch return self.request("PATCH", url, data=data, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ AuthenticatedUser.testEditWithoutArguments __________________ self = def testEditWithoutArguments(self): > self.user.edit() tests/AuthenticatedUser.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:656: in edit headers, data = self._requester.requestJsonAndCheck("PATCH", "/user", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:661: in patch return self.request("PATCH", url, data=data, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ AuthenticatedUser.testEmails _________________________ self = def testEmails(self): > emails = self.user.get_emails() tests/AuthenticatedUser.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:677: in get_emails headers, data = self._requester.requestJsonAndCheck("GET", "/user/emails") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testFollowing ________________________ self = def testFollowing(self): > nvie = self.g.get_user("nvie") tests/AuthenticatedUser.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ AuthenticatedUser.testGetAuthorizations ____________________ self = def testGetAuthorizations(self): > self.assertListKeyEqual(self.user.get_authorizations(), lambda a: a.id, [372294]) tests/AuthenticatedUser.py:351: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testGetEvents ________________________ self = def testGetEvents(self): > self.assertListKeyBegin( self.user.get_events(), lambda e: e.type, ["PushEvent", "IssuesEvent", "IssueCommentEvent", "PushEvent"], ) tests/AuthenticatedUser.py:425: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testGetGists ________________________ self = def testGetGists(self): > self.assertListKeyEqual( self.user.get_gists(), lambda g: g.id, [ "2793505", "2793179", "11cb445f8197e17d303d", "1942384", "dcb7de17e8a52b74541d", ], ) tests/AuthenticatedUser.py:439: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testGetInvitations _____________________ self = def testGetInvitations(self): > invitation = self.user.get_invitations()[0] tests/AuthenticatedUser.py:759: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ AuthenticatedUser.testGetIssues ________________________ self = def testGetIssues(self): > self.assertListKeyEqual( self.user.get_issues(), lambda i: (i.id, i.repository.name), [ (4639931, "PyGithub"), (4452000, "PyGithub"), (4356743, "PyGithub"), (3716033, "PyGithub"), (3715946, "PyGithub"), (3643837, "PyGithub"), (3628022, "PyGithub"), (3624595, "PyGithub"), (3624570, "PyGithub"), (3624561, "PyGithub"), (3624556, "PyGithub"), (3619973, "PyGithub"), (3527266, "PyGithub"), (3527245, "PyGithub"), (3527231, "PyGithub"), ], ) tests/AuthenticatedUser.py:464: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ AuthenticatedUser.testGetIssuesWithAllArguments ________________ self = def testGetIssuesWithAllArguments(self): > requestedByUser = self.user.get_repo("PyGithub").get_label("Requested by user") tests/AuthenticatedUser.py:487: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testGetKeys _________________________ self = def testGetKeys(self): > self.assertListKeyEqual( self.user.get_keys(), lambda k: k.title, ["vincent@home", "vincent@gandi", "vincent@aws", "vincent@macbook"], ) tests/AuthenticatedUser.py:627: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testGetMemberships _____________________ self = def testGetMemberships(self): membership_data = self.user.get_organization_memberships() > self.assertListKeyEqual( membership_data, lambda e: e.organization.login, ["aneyem-github", "nko4", "geoservel", "iic2154-uc-cl", "nnodes", "sushiclm"], ) tests/AuthenticatedUser.py:790: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testGetMigrations ______________________ self = def testGetMigrations(self): > self.assertEqual(self.user.get_migrations().totalCount, 46) tests/AuthenticatedUser.py:778: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:226: in totalCount headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ AuthenticatedUser.testGetNotification _____________________ self = def testGetNotification(self): > notification = self.user.get_notification("8406712") tests/AuthenticatedUser.py:708: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:796: in get_notification headers, data = self._requester.requestJsonAndCheck("GET", f"/notifications/threads/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ AuthenticatedUser.testGetNotifications ____________________ self = def testGetNotifications(self): > self.assertListKeyEqual(self.user.get_notifications(participating=True), lambda n: n.id, ["8406712"]) tests/AuthenticatedUser.py:729: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ AuthenticatedUser.testGetNotificationsWithOtherArguments ___________ self = def testGetNotificationsWithOtherArguments(self): > self.assertListKeyEqual(self.user.get_notifications(all=True), lambda n: n.id, []) tests/AuthenticatedUser.py:732: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ AuthenticatedUser.testGetOrganizationEvents __________________ self = def testGetOrganizationEvents(self): self.assertListKeyBegin( > self.user.get_organization_events(self.g.get_organization("BeaverSoftware")), lambda e: e.type, ["CreateEvent", "CreateEvent", "PushEvent", "PushEvent"], ) tests/AuthenticatedUser.py:433: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testGetOrgs _________________________ self = def testGetOrgs(self): > self.assertListKeyEqual(self.user.get_orgs(), lambda o: o.login, ["BeaverSoftware"]) tests/AuthenticatedUser.py:634: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testGetRepos ________________________ self = def testGetRepos(self): > self.assertListKeyEqual( self.user.get_repos(), lambda r: r.name, [ "TestPyGithub", "django", "PyGithub", "developer.github.com", "acme-public-website", "C4Planner", "Hacking", "vincent-jacques.net", "Contests", "Candidates", "Tests", "DrawTurksHead", "DrawSyntax", "QuadProgMm", "Boost.HierarchicalEnum", "ViDE", ], ) tests/AuthenticatedUser.py:637: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ AuthenticatedUser.testGetReposWithArguments __________________ self = def testGetReposWithArguments(self): > self.assertListKeyEqual( self.user.get_repos("all", "owner", "public", "full_name", "desc"), lambda r: r.name, [ "ViDE", "QuadProgMm", "PyGithub", "DrawTurksHead", "DrawSyntax", "django", "developer.github.com", "C4Planner", "Boost.HierarchicalEnum", "acme-public-website", ], ) tests/AuthenticatedUser.py:661: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ AuthenticatedUser.testGetStarredGists _____________________ self = def testGetStarredGists(self): > self.assertListKeyEqual( self.user.get_starred_gists(), lambda g: g.id, ["1942384", "dcb7de17e8a52b74541d"], ) tests/AuthenticatedUser.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testGetTeams ________________________ self = def testGetTeams(self): > self.assertListKeyEqual( self.user.get_teams(), lambda t: t.name, [ "Owners", "Honoraries", "Honoraries", "Honoraries", "Honoraries", "Honoraries", "Honoraries", "Honoraries", "Honoraries", "Honoraries", ], ) tests/AuthenticatedUser.py:738: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testGetUserIssues ______________________ self = def testGetUserIssues(self): > self.assertListKeyEqual( self.user.get_user_issues(), lambda i: i.id, [ 14447880, 13505356, 12541184, 10586808, 6741461, 6741457, 6727331, 5641572, ], ) tests/AuthenticatedUser.py:549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ AuthenticatedUser.testGetUserIssuesWithAllArguments ______________ self = def testGetUserIssuesWithAllArguments(self): > requestedByUser = self.user.get_repo("PyGithub").get_label("Requested by user") tests/AuthenticatedUser.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testInstallations ______________________ self = def testInstallations(self): installations = self.user.get_installations() > self.assertEqual(installations[0].id, 123456) tests/AuthenticatedUser.py:782: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ AuthenticatedUser.testMarkNotificationsAsRead _________________ self = def testMarkNotificationsAsRead(self): > self.user.mark_notifications_as_read(datetime(2018, 10, 18, 18, 20, 0o1, 0)) tests/AuthenticatedUser.py:735: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:967: in mark_notifications_as_read headers, data = self._requester.requestJsonAndCheck("PUT", "/notifications", input=put_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:649: in put return self.request("PUT", url, data=data, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testStarring ________________________ self = def testStarring(self): > gitflow = self.g.get_user("nvie").get_repo("gitflow") tests/AuthenticatedUser.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ AuthenticatedUser.testSubscriptions ______________________ self = def testSubscriptions(self): > gitflow = self.g.get_user("nvie").get_repo("gitflow") tests/AuthenticatedUser.py:306: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ AuthenticatedUser.testWatching ________________________ self = def testWatching(self): > gitflow = self.g.get_user("nvie").get_repo("gitflow") tests/AuthenticatedUser.py:209: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Authentication.testAppAuthAuthentication ___________________ self = def testAppAuthAuthentication(self): # test data copied from testAppAuthentication to test parity g = github.Github(auth=self.app_auth.get_installation_auth(29782936)) > self.assertEqual(g.get_user("ammarmallik").name, "Ammar Akbar") tests/Authentication.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:965: in __requestEncode self.__auth.authentication(requestHeaders) github/Auth.py:81: in authentication headers["Authorization"] = f"{self.token_type} {self.token}" github/Auth.py:353: in token self.__installation_authorization = self._get_installation_authorization() github/Auth.py:364: in _get_installation_authorization return self.__integration.get_access_token( github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ Authentication.testAppAuthTokenAuthentication _________________ self = def testAppAuthTokenAuthentication(self): # test data copied from testJWTAuthentication to test parity g = github.Github(auth=self.jwt) > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Authentication.testAppAuthentication _____________________ self = def testAppAuthentication(self): with self.assertWarns(DeprecationWarning) as warning: app_auth = github.AppAuthentication( app_id=self.app_auth.app_id, private_key=self.app_auth.private_key, installation_id=29782936, ) g = github.Github(app_auth=app_auth) > self.assertEqual(g.get_user("ammarmallik").name, "Ammar Akbar") tests/Authentication.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:965: in __requestEncode self.__auth.authentication(requestHeaders) github/Auth.py:81: in authentication headers["Authorization"] = f"{self.token_type} {self.token}" github/Auth.py:353: in token self.__installation_authorization = self._get_installation_authorization() github/Auth.py:364: in _get_installation_authorization return self.__integration.get_access_token( github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ Authentication.testAppInstallationAuthAuthentication _____________ self = def testAppInstallationAuthAuthentication(self): # test data copied from testAppAuthentication to test parity installation_auth = github.Auth.AppInstallationAuth(self.app_auth, 29782936) g = github.Github(auth=installation_auth) # token expires 2024-11-25 01:00:02 > token = installation_auth.token tests/Authentication.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Auth.py:353: in token self.__installation_authorization = self._get_installation_authorization() github/Auth.py:364: in _get_installation_authorization return self.__integration.get_access_token( github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Authentication.testAppUserAuthentication ___________________ self = def testAppUserAuthentication(self): client_id = "removed client id" client_secret = "removed client secret" refresh_token = "removed refresh token" g = github.Github() app = g.get_oauth_application(client_id, client_secret) with mock.patch("github.AccessToken.datetime") as dt: dt.now = mock.Mock(return_value=datetime(2023, 6, 7, 12, 0, 0, 123, tzinfo=timezone.utc)) > token = app.refresh_access_token(refresh_token) tests/Authentication.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/ApplicationOAuth.py:178: in refresh_access_token *self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Authentication.testAuthorizationHeaderWithLogin ________________ self = def testAuthorizationHeaderWithLogin(self): # See special case in Framework.fixAuthorizationHeader g = github.Github(auth=github.Auth.Login("fake_login", "fake_password")) with self.assertRaises(github.GithubException): > g.get_user().name tests/Authentication.py:329: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:286: in name self._completeIfNotSet(self._name) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Authentication.testAuthorizationHeaderWithToken ________________ self = def testAuthorizationHeaderWithToken(self): # See special case in Framework.fixAuthorizationHeader g = github.Github(auth=github.Auth.Token("ZmFrZV9sb2dpbjpmYWtlX3Bhc3N3b3Jk")) with self.assertRaises(github.GithubException): > g.get_user().name tests/Authentication.py:335: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:286: in name self._completeIfNotSet(self._name) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Authentication.testBasicAuthentication ____________________ self = def testBasicAuthentication(self): with self.assertWarns(DeprecationWarning) as warning: g = github.Github(self.login.login, self.login.password) > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Authentication.testJWTAuthentication _____________________ self = def testJWTAuthentication(self): with self.assertWarns(DeprecationWarning) as warning: g = github.Github(jwt=self.jwt.token) > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Authentication.testLoginAuthentication ____________________ self = def testLoginAuthentication(self): # test data copied from testBasicAuthentication to test parity g = github.Github(auth=self.login) > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Authentication.testNoAuthentication ______________________ self = def testNoAuthentication(self): g = github.Github() > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Authentication.testOAuthAuthentication ____________________ self = def testOAuthAuthentication(self): with self.assertWarns(DeprecationWarning) as warning: g = github.Github(self.oauth_token.token) > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Authentication.testTokenAuthentication ____________________ self = def testTokenAuthentication(self): # test data copied from testOAuthAuthentication to test parity g = github.Github(auth=self.oauth_token) > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Authentication.testUserAgent _________________________ self = def testUserAgent(self): g = github.Github(user_agent="PyGithubTester") > self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") tests/Authentication.py:323: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Authorization.testAttributes _________________________ self = def setUp(self): super().setUp() > self.authorization = self.g.get_user().get_authorization(372259) tests/Authorization.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:664: in get_authorization headers, data = self._requester.requestJsonAndCheck("GET", f"/authorizations/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Authorization.testDelete ___________________________ self = def setUp(self): super().setUp() > self.authorization = self.g.get_user().get_authorization(372259) tests/Authorization.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:664: in get_authorization headers, data = self._requester.requestJsonAndCheck("GET", f"/authorizations/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Authorization.testEdit ____________________________ self = def setUp(self): super().setUp() > self.authorization = self.g.get_user().get_authorization(372259) tests/Authorization.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:664: in get_authorization headers, data = self._requester.requestJsonAndCheck("GET", f"/authorizations/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Autolink.testAttributes ____________________________ self = def setUp(self): super().setUp() # When recording test, be sure to create a autolink for yourself on # Github and update it here. > links = [x for x in self.g.get_user("theCapypara").get_repo("PyGithub").get_autolinks() if x.id == 209614] tests/Autolink.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ BadAttributes.testBadAttributeInClassAttribute ________________ self = def testBadAttributeInClassAttribute(self): > repo = self.g.get_repo("klmitch/turnstile") tests/BadAttributes.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ BadAttributes.testBadAttributeTransformation _________________ self = def testBadAttributeTransformation(self): > user = self.g.get_user("klmitch") tests/BadAttributes.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ BadAttributes.testBadSimpleAttribute _____________________ self = def testBadSimpleAttribute(self): > user = self.g.get_user("klmitch") tests/BadAttributes.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ BadAttributes.testBadSimpleAttributeInList __________________ self = def testBadSimpleAttributeInList(self): > hook = self.g.get_hook("activecollab") tests/BadAttributes.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:886: in get_hook headers, attributes = self.__requester.requestJsonAndCheck("GET", f"/hooks/{name}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ BadAttributes.testBadTransformedAttribute ___________________ self = def testBadTransformedAttribute(self): > user = self.g.get_user("klmitch") tests/BadAttributes.py:74: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ BadAttributes.testBadTransformedAttributeInDict ________________ self = def testBadTransformedAttributeInDict(self): > gist = self.g.get_gist("6437766") tests/BadAttributes.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ BadAttributes.testBadTransformedAttributeInList ________________ self = def testBadTransformedAttributeInList(self): > commit = self.g.get_repo("klmitch/turnstile", lazy=True).get_commit("38d9082a898d0822b5ccdfd78f3a536e2efa6c26") tests/BadAttributes.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:2147: in get_commit headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/commits/{sha}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ BadAttributes.testIssue195 __________________________ self = def testIssue195(self): > hooks = self.g.get_hooks() tests/BadAttributes.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:894: in get_hooks headers, data = self.__requester.requestJsonAndCheck("GET", "/hooks") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Branch.testAddRequiredSignatures _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Branch.testAddTeamPushRestrictions ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Branch.testAddUserPushRestrictions ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Branch.testAdminEnforcement __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Branch.testAllowDeletions ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Branch.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Branch.testEditProtection ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________ Branch.testEditProtectionDismissalUsersWithUserOwnedBranch __________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________ Branch.testEditProtectionPushRestrictionsAndDismissalUser ___________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________ Branch.testEditProtectionPushRestrictionsWithUserOwnedBranch _________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Branch.testEditRequiredPullRequestReviews ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __ Branch.testEditRequiredPullRequestReviewsWithTooLargeApprovingReviewCount ___ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___ Branch.testEditRequiredPullRequestReviewsWithUserBranchAndDismissalUsers ___ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Branch.testEditRequiredStatusChecks ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Branch.testGetRequiredSignatures _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Branch.testRemoveProtection __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Branch.testRemovePushRestrictions _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Branch.testRemoveRequiredPullRequestReviews __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Branch.testRemoveRequiredSignatures ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Branch.testRemoveRequiredStatusChecks _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Branch.testRemoveTeamPushRestrictions _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Branch.testRemoveUserPushRestrictions _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Branch.testReplaceTeamPushRestrictions ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Branch.testReplaceUserPushRestrictions ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Branch.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ BranchProtection.testAttributes ________________________ self = def setUp(self): super().setUp() > self.branch_protection = self.g.get_repo("curvewise-forks/PyGithub").get_branch("master").get_protection() tests/BranchProtection.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ CheckRun.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ CheckRun.testCheckRunAnnotationAttributes ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ CheckRun.testCheckRunOutputAttributes _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ CheckRun.testCreateCheckRunCompleted _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ CheckRun.testCreateCheckRunInProgress _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ CheckRun.testGetCheckRunsForRef ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ CheckRun.testGetCheckRunsForRefFilterByCheckName _______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ CheckRun.testGetCheckRunsForRefFilterByFilter _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ CheckRun.testGetCheckRunsForRefFilterByStatus _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ CheckRun.testListCheckRunAnnotations _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ CheckRun.testUpdateCheckRunAll ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ CheckRun.testUpdateCheckRunFailure ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ CheckRun.testUpdateCheckRunSuccess ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/CheckRun.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ CheckSuite.testAttributes ___________________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ CheckSuite.testCheckSuiteRerequest ______________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ CheckSuite.testCreateCheckSuite ________________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ CheckSuite.testGetCheckRuns __________________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ CheckSuite.testGetCheckRunsFilterByCheckName _________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ CheckSuite.testGetCheckRunsFilterByFilter ___________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ CheckSuite.testGetCheckRunsFilterByStatus ___________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ CheckSuite.testGetCheckSuitesForRef ______________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ CheckSuite.testGetCheckSuitesForRefFilterByAppId _______________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ CheckSuite.testGetCheckSuitesForRefFilterByCheckName _____________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ CheckSuite.testUpdateCheckSuitesPreferences __________________ self = def setUp(self): super().setUp() self.check_suite_id = 1004503837 self.test_check_suite_id = 1366665055 > self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") tests/CheckSuite.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Commit.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Commit.testCreateComment ___________________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Commit.testCreateCommentOnFileLine ______________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Commit.testCreateCommentOnFilePosition ____________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Commit.testCreateStatusWithAllParameters ___________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Commit.testCreateStatusWithoutOptionalParameters _______________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Commit.testGetComments ____________________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Commit.testGetPulls ______________________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a") tests/Commit.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ CommitCombinedStatus.testAttributes ______________________ self = def setUp(self): super().setUp() self.combined_status = ( self.g.get_repo("edx/edx-platform", lazy=True) > .get_commit("74e70119a23fa3ffb3db19d4590eccfebd72b659") .get_combined_status() ) tests/CommitCombinedStatus.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:2147: in get_commit headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/commits/{sha}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ CommitComment.testAttributes _________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_comment(1361949) tests/CommitComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ CommitComment.testCreateReaction _______________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_comment(1361949) tests/CommitComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ CommitComment.testDelete ___________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_comment(1361949) tests/CommitComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ CommitComment.testDeleteReaction _______________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_comment(1361949) tests/CommitComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ CommitComment.testEdit ____________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_comment(1361949) tests/CommitComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ CommitComment.testGetReactions ________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_comment(1361949) tests/CommitComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ CommitStatus.testAttributes __________________________ self = def setUp(self): super().setUp() self.statuses = list( > self.g.get_user().get_repo("PyGithub").get_commit("1292bf0e22c796e91cc3d6e24b544aece8c21f2a").get_statuses() ) tests/CommitStatus.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ ConditionalRequestUpdate.testDidNotUpdate ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("akfish/PyGithub", lazy=False) tests/ConditionalRequestUpdate.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ ConditionalRequestUpdate.testDidUpdate ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("akfish/PyGithub", lazy=False) tests/ConditionalRequestUpdate.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ ConditionalRequestUpdate.testUpdateObjectWithoutEtag _____________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("akfish/PyGithub", lazy=False) tests/ConditionalRequestUpdate.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpConnection-http-{"body":"BODY TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY TEXT"}\n\n] _ replaying_connection_class = protocol = 'http', response_body = '{"body":"BODY TEXT"}' expected_recording = '\nGET\napi.github.com\nNone\n/user\n{\'Authorization\': \'Basic login_and_password_removed\', \'User-Agent\': \'PyGithub/Python\'}\nNone\n200\n[]\n{"body":"BODY TEXT"}\n\n' @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("api.github.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpConnection-http-{"body":"BODY\xa0TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY\xa0TEXT"}\n\n] _ replaying_connection_class = protocol = 'http', response_body = '{"body":"BODY\xa0TEXT"}' expected_recording = '\nGET\napi.github.com\nNone\n/user\n{\'Authorization\': \'Basic login_and_password_removed\', \'User-Agent\': \'PyGithub/Python\'}\nNone\n200\n[]\n{"body":"BODY\xa0TEXT"}\n\n' @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("api.github.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpConnection-http-BODY TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY TEXT\n\n] _ replaying_connection_class = protocol = 'http', response_body = 'BODY TEXT' expected_recording = "\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY TEXT\n\n" @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("api.github.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpConnection-http-BODY\xa0TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY\xa0TEXT\n\n] _ replaying_connection_class = protocol = 'http', response_body = 'BODY\xa0TEXT' expected_recording = "\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY\xa0TEXT\n\n" @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("api.github.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpsConnection-https-{"body":"BODY TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY TEXT"}\n\n] _ replaying_connection_class = protocol = 'https', response_body = '{"body":"BODY TEXT"}' expected_recording = '\nGET\napi.github.com\nNone\n/user\n{\'Authorization\': \'Basic login_and_password_removed\', \'User-Agent\': \'PyGithub/Python\'}\nNone\n200\n[]\n{"body":"BODY TEXT"}\n\n' @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpsConnection-https-{"body":"BODY\xa0TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY\xa0TEXT"}\n\n] _ replaying_connection_class = protocol = 'https', response_body = '{"body":"BODY\xa0TEXT"}' expected_recording = '\nGET\napi.github.com\nNone\n/user\n{\'Authorization\': \'Basic login_and_password_removed\', \'User-Agent\': \'PyGithub/Python\'}\nNone\n200\n[]\n{"body":"BODY\xa0TEXT"}\n\n' @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpsConnection-https-BODY TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY TEXT\n\n] _ replaying_connection_class = protocol = 'https', response_body = 'BODY TEXT' expected_recording = "\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY TEXT\n\n" @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _ testRecordAndReplay[ReplayingHttpsConnection-https-BODY\xa0TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY\xa0TEXT\n\n] _ replaying_connection_class = protocol = 'https', response_body = 'BODY\xa0TEXT' expected_recording = "\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY\xa0TEXT\n\n" @pytest.mark.parametrize( ("replaying_connection_class", "protocol", "response_body", "expected_recording"), list(tuple(itertools.chain(*p)) for p in PARAMETERS), ) def testRecordAndReplay(replaying_connection_class, protocol, response_body, expected_recording): file = StringIO() host = "api.github.com" verb = "GET" url = "/user" headers = {"Authorization": "Basic p4ssw0rd", "User-Agent": "PyGithub/Python"} response = Mock() response.status = 200 response.getheaders.return_value = {} response.read.return_value = response_body connection = Mock() connection.getresponse.return_value = response # write mock response to buffer recording_connection = RecordingMockConnection(file, protocol, host, None, lambda *args, **kwds: connection) recording_connection.request(verb, url, None, headers) recording_connection.getresponse() recording_connection.close() # validate contents of buffer file_value_lines = file.getvalue().split("\n") expected_recording_lines = (protocol + expected_recording).split("\n") assert file_value_lines[:5] == expected_recording_lines[:5] assert eval(file_value_lines[5]) == eval(expected_recording_lines[5]) # dict literal, so keys not in guaranteed order assert file_value_lines[6:] == expected_recording_lines[6:] # required for replay to work as expected httpretty.enable(allow_net_connect=False) # rewind buffer and attempt to replay response from it file.seek(0) replaying_connection = replaying_connection_class(file, host=host, port=None) replaying_connection.request(verb, url, None, headers) > replaying_connection.getresponse() tests/Connection.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ ContentFile.testAttributes __________________________ self = def setUp(self): super().setUp() > self.file = self.g.get_user().get_repo("PyGithub").get_readme() tests/ContentFile.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ DependabotAlert.testAttributes ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ DependabotAlert.testGetAlertsWithAllArguments _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ DependabotAlert.testMultipleAlerts ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ DependabotAlert.testRepr ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ DependabotAlert.testUpdateAlertDismissed ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ DependabotAlert.testUpdateAlertDismissedWithoutReason _____________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ DependabotAlert.testUpdateAlertOpen ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("coopernetes/PyGithub") tests/DependabotAlert.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Deployment.testAttributes ___________________________ self = def setUp(self): super().setUp() > self.deployment = self.g.get_user().get_repo("PyGithub").get_deployment(263877258) tests/Deployment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ DeploymentStatus.testAttributes ________________________ self = def setUp(self): super().setUp() > self.deployment = self.g.get_user().get_repo("PyGithub").get_deployment(263877258) tests/DeploymentStatus.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ DeploymentStatus.testCreate __________________________ self = def setUp(self): super().setUp() > self.deployment = self.g.get_user().get_repo("PyGithub").get_deployment(263877258) tests/DeploymentStatus.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ DeploymentStatus.testGetStatuses _______________________ self = def setUp(self): super().setUp() > self.deployment = self.g.get_user().get_repo("PyGithub").get_deployment(263877258) tests/DeploymentStatus.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Download.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.download = self.g.get_user().get_repo("PyGithub").get_download(242550) tests/Download.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Download.testDelete ______________________________ self = def setUp(self): super().setUp() > self.download = self.g.get_user().get_repo("PyGithub").get_download(242550) tests/Download.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Enterprise.testHttp ______________________________ self = def testHttp(self): g = github.Github(auth=self.login, base_url="http://my.enterprise.com") > self.assertListKeyEqual( g.get_user().get_repos(), lambda r: r.name, [ "TestPyGithub", "django", "PyGithub", "developer.github.com", "acme-public-website", "C4Planner", "Hacking", "vincent-jacques.net", "Contests", "Candidates", "Tests", "DrawTurksHead", "DrawSyntax", "QuadProgMm", "Boost.HierarchicalEnum", "ViDE", ], ) tests/Enterprise.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _____________________________ Enterprise.testHttps _____________________________ self = def testHttps(self): g = github.Github(auth=self.login, base_url="https://my.enterprise.com") > self.assertListKeyEqual( g.get_user().get_repos(), lambda r: r.name, [ "TestPyGithub", "django", "PyGithub", "developer.github.com", "acme-public-website", "C4Planner", "Hacking", "vincent-jacques.net", "Contests", "Candidates", "Tests", "DrawTurksHead", "DrawSyntax", "QuadProgMm", "Boost.HierarchicalEnum", "ViDE", ], ) tests/Enterprise.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("my.enterprise.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Enterprise.testLongUrl ____________________________ self = def testLongUrl(self): g = github.Github(auth=self.login, base_url="http://my.enterprise.com/path/to/github") repos = g.get_user().get_repos() > self.assertListKeyEqual( repos, lambda r: r.name, [ "TestPyGithub", "django", "PyGithub", "developer.github.com", "acme-public-website", "C4Planner", "Hacking", "vincent-jacques.net", "Contests", "Candidates", "Tests", "DrawTurksHead", "DrawSyntax", "QuadProgMm", "Boost.HierarchicalEnum", "ViDE", ], ) tests/Enterprise.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _________________________ Enterprise.testSpecificPort __________________________ self = def testSpecificPort(self): g = github.Github(auth=self.login, base_url="http://my.enterprise.com:8080") > self.assertListKeyEqual( g.get_user().get_repos(), lambda r: r.name, [ "TestPyGithub", "django", "PyGithub", "developer.github.com", "acme-public-website", "C4Planner", "Hacking", "vincent-jacques.net", "Contests", "Candidates", "Tests", "DrawTurksHead", "DrawSyntax", "QuadProgMm", "Boost.HierarchicalEnum", "ViDE", ], ) tests/Enterprise.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError ___________________ EnterpriseAdmin.testGetConsumedLicenses ____________________ self = def testGetConsumedLicenses(self): > consumed_licenses = self.enterprise.get_consumed_licenses() tests/EnterpriseAdmin.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Enterprise.py:85: in get_consumed_licenses headers, data = self._requester.requestJsonAndCheck("GET", self.url + "/consumed-licenses") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ EnterpriseAdmin.testGetEnterpriseUsers ____________________ self = def testGetEnterpriseUsers(self): > enterprise_users = self.enterprise.get_consumed_licenses().get_users() tests/EnterpriseAdmin.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Enterprise.py:85: in get_consumed_licenses headers, data = self._requester.requestJsonAndCheck("GET", self.url + "/consumed-licenses") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Environment.testAttributes __________________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Environment.testCreateEnvironment _______________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Environment.testDeleteEnvironment _______________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Environment.testEnvironmentSecret _______________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Environment.testEnvironmentSecrets ______________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Environment.testEnvironmentVariable ______________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Environment.testEnvironmentVariables _____________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Environment.testGetEnvironments ________________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Environment.testProtectionRules ________________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Environment.testReviewers ___________________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Environment.testUpdateEnvironment _______________________ self = def setUp(self): self.tokenAuthMode = True super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Environment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Equality.testBranchEquality __________________________ self = def testBranchEquality(self): # Erf, equality of NonCompletableGithubObjects will be difficult to implement # because even their _rawData can differ. (Here, the avatar_url is not equal) # (CompletableGithubObjects are compared by their API url, which is a good key) > r = self.g.get_user().get_repo("PyGithub") tests/Equality.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Equality.testUserDifference __________________________ self = def testUserDifference(self): > u1 = self.g.get_user("jacquev6") tests/Equality.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Equality.testUserEquality ___________________________ self = def testUserEquality(self): > u1 = self.g.get_user("jacquev6") tests/Equality.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Event.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.event = self.g.get_user("jacquev6").get_events()[0] tests/Event.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Exceptions.testBadAuthentication _______________________ self = def testBadAuthentication(self): with self.assertRaises(github.GithubException) as raisedexp: > github.Github(auth=github.Auth.Login("BadUser", "BadPassword")).get_user().login tests/Exceptions.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Exceptions.testInvalidInput __________________________ self = def testInvalidInput(self): with self.assertRaises(github.GithubException) as raisedexp: > self.g.get_user().create_key("Bad key", "xxx") tests/Exceptions.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:538: in create_key headers, data = self._requester.requestJsonAndCheck("POST", "/user/keys", input=post_parameters) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Exceptions.testJSONParseError _________________________ self = def testJSONParseError(self): # Replay data was forged to force a JSON error with self.assertRaises(ValueError): > self.g.get_user("jacquev6") tests/Exceptions.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Exceptions.testNonJsonDataReturnedByGithub __________________ self = def testNonJsonDataReturnedByGithub(self): # Replay data was forged according to https://github.com/jacquev6/PyGithub/pull/182 with self.assertRaises(github.GithubException) as raisedexp: # 503 would be retried, disable retries > self.get_github(retry=None, pool_size=self.pool_size).get_user("jacquev6") tests/Exceptions.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Exceptions.testUnknownObject _________________________ self = def testUnknownObject(self): with self.assertRaises(github.GithubException) as raisedexp: > self.g.get_user().get_repo("Xxx") tests/Exceptions.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Exceptions.testUnknownUser __________________________ self = def testUnknownUser(self): with self.assertRaises(github.GithubException) as raisedexp: > self.g.get_user("ThisUserShouldReallyNotExist") tests/Exceptions.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ SpecificExceptions.test2FARequired ______________________ self = def test2FARequired(self): > self.assertRaises( github.TwoFactorException, lambda: github.Github(auth=github.Auth.Login("2fauser", "password")).get_user().login, ) tests/Exceptions.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Exceptions.py:121: in lambda: github.Github(auth=github.Auth.Login("2fauser", "password")).get_user().login, github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ SpecificExceptions.testAuthenticatedRateLimitExceeded _____________ self = def testAuthenticatedRateLimitExceeded(self): def exceed(): for i in range(100): res = self.g.search_code("jacquev6") res.get_page(0) with self.assertRaises(github.RateLimitExceededException) as raised: > exceed() tests/Exceptions.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Exceptions.py:147: in exceed res.get_page(0) github/PaginatedList.py:414: in get_page headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ SpecificExceptions.testBadCredentials _____________________ self = def testBadCredentials(self): > self.assertRaises( github.BadCredentialsException, lambda: github.Github(auth=github.Auth.Login("BadUser", "BadPassword")).get_user().login, ) tests/Exceptions.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Exceptions.py:115: in lambda: github.Github(auth=github.Auth.Login("BadUser", "BadPassword")).get_user().login, github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ SpecificExceptions.testBadUserAgent ______________________ self = def testBadUserAgent(self): > self.assertRaises( github.BadUserAgentException, lambda: github.Github(auth=self.login, user_agent="").get_user().name, ) tests/Exceptions.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Exceptions.py:130: in lambda: github.Github(auth=self.login, user_agent="").get_user().name, github/AuthenticatedUser.py:286: in name self._completeIfNotSet(self._name) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ SpecificExceptions.testRateLimitExceeded ___________________ self = def testRateLimitExceeded(self): # rate limit errors would be retried if retry is not set None g = github.Github(retry=None) def exceed(): for i in range(100): g.get_user("jacquev6") > self.assertRaises(github.RateLimitExceededException, exceed) tests/Exceptions.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Exceptions.py:139: in exceed g.get_user("jacquev6") github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ SpecificExceptions.testUnknownObject _____________________ self = def testUnknownObject(self): > self.assertRaises(github.UnknownObjectException, lambda: self.g.get_user().get_repo("Xxx")) tests/Exceptions.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Exceptions.py:125: in self.assertRaises(github.UnknownObjectException, lambda: self.g.get_user().get_repo("Xxx")) github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ ExposeAllAttributes.testAllClasses ______________________ self = def testAllClasses(self): authenticatedUser = self.g.get_user() > namedUser = self.g.get_user("nvie") tests/ExposeAllAttributes.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Gist.testAttributes ______________________________ self = def testAttributes(self): > gist = self.g.get_gist("6296732") tests/Gist.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Gist.testCreateComment ____________________________ self = def testCreateComment(self): > gist = self.g.get_gist("2729810") tests/Gist.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ Gist.testDelete ________________________________ self = def testDelete(self): > gist = self.g.get_gist("2729810") tests/Gist.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Gist.testDeleteFile ______________________________ self = def testDeleteFile(self): > gist = self.g.get_gist("5339374") tests/Gist.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Gist.testEditWithAllParameters ________________________ self = def testEditWithAllParameters(self): > gist = self.g.get_gist("2729810") tests/Gist.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Gist.testEditWithoutParameters ________________________ self = def testEditWithoutParameters(self): > gist = self.g.get_gist("2729810") tests/Gist.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________________ Gist.testFork _________________________________ self = def testFork(self): > gist = self.g.get_gist("6296553") # Random gist tests/Gist.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Gist.testGetComments _____________________________ self = def testGetComments(self): > gist = self.g.get_gist("2729810") tests/Gist.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Gist.testRenameFile ______________________________ self = def testRenameFile(self): > gist = self.g.get_gist("5339374") tests/Gist.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ Gist.testStarring _______________________________ self = def testStarring(self): > gist = self.g.get_gist("2729810") tests/Gist.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GistComment.testAttributes __________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_gist("2729810").get_comment(323629) tests/GistComment.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GistComment.testDelete ____________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_gist("2729810").get_comment(323629) tests/GistComment.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ GistComment.testEdit _____________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_gist("2729810").get_comment(323629) tests/GistComment.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:504: in get_gist headers, data = self.__requester.requestJsonAndCheck("GET", f"/gists/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GitBlob.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.blob = self.g.get_user().get_repo("PyGithub").get_git_blob("53bce9fa919b4544e67275089b3ec5b44be20667") tests/GitBlob.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ GitCommit.testAttributes ___________________________ self = def setUp(self): super().setUp() > self.commit = self.g.get_user().get_repo("PyGithub").get_git_commit("4303c5b90e2216d927155e9609436ccb8984c495") tests/GitCommit.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ GitMembership.testGetMembership ________________________ self = def testGetMembership(self): octocat = self.g.get_user() > self.assertEqual(octocat.login, "octocat") tests/GitMembership.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GitRef.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.ref = self.g.get_user().get_repo("PyGithub").get_git_ref("heads/BranchCreatedByPyGithub") tests/GitRef.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ GitRef.testDelete _______________________________ self = def setUp(self): super().setUp() > self.ref = self.g.get_user().get_repo("PyGithub").get_git_ref("heads/BranchCreatedByPyGithub") tests/GitRef.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ GitRef.testEdit ________________________________ self = def setUp(self): super().setUp() > self.ref = self.g.get_user().get_repo("PyGithub").get_git_ref("heads/BranchCreatedByPyGithub") tests/GitRef.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ GitRef.testEditWithForce ___________________________ self = def setUp(self): super().setUp() > self.ref = self.g.get_user().get_repo("PyGithub").get_git_ref("heads/BranchCreatedByPyGithub") tests/GitRef.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GitRelease.testAttributes ___________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ GitRelease.testCreateGitTagAndRelease _____________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GitRelease.testDelete _____________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ GitRelease.testGetAssets ___________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ GitRelease.testGetLatestRelease ________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GitRelease.testGetRelease ___________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GitRelease.testUpdate _____________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GitRelease.testUploadAsset __________________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ GitRelease.testUploadAssetFileLike ______________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ GitRelease.testUploadAssetFromMemory _____________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ GitRelease.testUploadAssetWithName ______________________ self = def setUp(self): super().setUp() self.new_tag = "v1.25.2" # Used for new releases self.content_path = "content.txt" self.artifact_path = "archive.zip" with open(self.content_path, "w") as zip_content: zip_content.write("Pedro for president.") artifact = zipfile.ZipFile(self.artifact_path, "w") artifact.write(self.content_path) artifact.close() > self.repo = self.g.get_user(user).get_repo(repo_name) tests/GitRelease.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GitTag.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.tag = self.g.get_user().get_repo("PyGithub").get_git_tag("f5f37322407b02a80de4526ad88d5f188977bc3c") tests/GitTag.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GitTree.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.tree = self.g.get_user().get_repo("PyGithub").get_git_tree("f492784d8ca837779650d1fb406a1a3587a764ad") tests/GitTree.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ GithubApp.testGetAuthenticatedApp _______________________ self = def testGetAuthenticatedApp(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) g = github.Github(auth=auth) with self.assertWarns(DeprecationWarning) as warning: # httpretty has some deprecation warnings in Python 3.12 with self.ignoreWarning(category=DeprecationWarning, module="httpretty"): > app = g.get_app() tests/GithubApp.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:1026: in get_app return GithubIntegration(**self.__requester.kwargs).get_app() github/GithubIntegration.py:315: in get_app headers, data = self.__requester.requestJsonAndCheck("GET", "/app", headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GithubApp.testGetPublicApp __________________________ self = def testGetPublicApp(self): app = self.g.get_app(slug=self.app_slug) > self.assertEqual(app.created_at, datetime(2018, 7, 30, 9, 30, 17, tzinfo=timezone.utc)) tests/GithubApp.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubApp.py:82: in created_at self._completeIfNotSet(self._created_at) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ GithubIntegration.testAppAuth _________________________ self = def testAppAuth(self): # Replay data copied from testDeprecatedAppAuth to test parity auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) installations = github_integration.get_installations() > self.assertEqual(len(list(installations)), 2) tests/GithubIntegration.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ GithubIntegration.testDeprecatedAppAuth ____________________ self = def testDeprecatedAppAuth(self): # Replay data copied from testGetInstallations to test authentication only with self.assertWarns(DeprecationWarning) as warning: github_integration = github.GithubIntegration(integration_id=APP_ID, private_key=PRIVATE_KEY) installations = github_integration.get_installations() > self.assertEqual(len(list(installations)), 2) tests/GithubIntegration.py:87: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ GithubIntegration.testGetAccessToken _____________________ self = def testGetAccessToken(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) # Get repo installation access token > repo_installation_authorization = github_integration.get_access_token(self.repo_installation_id) tests/GithubIntegration.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ GithubIntegration.testGetAccessTokenForNoInstallation _____________ self = def testGetAccessTokenForNoInstallation(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) with self.assertRaises(github.UnknownObjectException) as raisedexp: > github_integration.get_access_token(40432121) tests/GithubIntegration.py:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ GithubIntegration.testGetAccessTokenWithExpiredJWT ______________ self = def testGetAccessTokenWithExpiredJWT(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) with self.assertRaises(github.GithubException) as raisedexp: > github_integration.get_access_token(self.repo_installation_id) tests/GithubIntegration.py:250: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________ GithubIntegration.testGetAccessTokenWithInvalidPermissions __________ self = def testGetAccessTokenWithInvalidPermissions(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) with self.assertRaises(github.GithubException) as raisedexp: > github_integration.get_access_token(self.repo_installation_id, permissions={"test-permissions": "read"}) tests/GithubIntegration.py:266: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ GithubIntegration.testGetApp _________________________ self = def testGetApp(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) > app = github_integration.get_app() tests/GithubIntegration.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:315: in get_app headers, data = self.__requester.requestJsonAndCheck("GET", "/app", headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ GithubIntegration.testGetAppInstallation ___________________ self = def testGetAppInstallation(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) > installation = github_integration.get_app_installation(installation_id=self.org_installation_id) tests/GithubIntegration.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:308: in get_app_installation return self._get_installed_app(url=f"/app/installations/{installation_id}") github/GithubIntegration.py:208: in _get_installed_app headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ GithubIntegration.testGetGithubForInstallation ________________ self = def testGetGithubForInstallation(self): # with verify=False, urllib3.connectionpool rightly may issue an InsecureRequestWarning # we ignore InsecureRequestWarning from urllib3.connectionpool with self.ignoreWarning(category=InsecureRequestWarning, module="urllib3.connectionpool"): kwargs = dict( auth=github.Auth.AppAuth(APP_ID, PRIVATE_KEY), # http protocol used to deviate from default base url, recording data might require https base_url="http://api.github.com", timeout=Consts.DEFAULT_TIMEOUT + 10, user_agent="PyGithub/Python-Test", per_page=Consts.DEFAULT_PER_PAGE + 10, verify=False, retry=3, pool_size=10, seconds_between_requests=100, seconds_between_writes=1000, ) # assert kwargs consists of ALL requester constructor arguments self.assertEqual(kwargs.keys(), github.Requester.Requester.__init__.__annotations__.keys()) github_integration = github.GithubIntegration(**kwargs) g = github_integration.get_github_for_installation(36541767) self.assertIsInstance(g._Github__requester.auth, AppInstallationAuth) actual = g._Github__requester.kwargs kwargs.update(auth=str(AppInstallationAuth)) actual.update(auth=str(type(actual["auth"]))) self.assertDictEqual(kwargs, actual) > repo = g.get_repo("PyGithub/PyGithub") tests/GithubIntegration.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:965: in __requestEncode self.__auth.authentication(requestHeaders) github/Auth.py:81: in authentication headers["Authorization"] = f"{self.token_type} {self.token}" github/Auth.py:353: in token self.__installation_authorization = self._get_installation_authorization() github/Auth.py:364: in _get_installation_authorization return self.__integration.get_access_token( github/GithubIntegration.py:240: in get_access_token headers, response = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError ________________ GithubIntegration.testGetInstallationNotFound _________________ self = def testGetInstallationNotFound(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) with self.assertRaises(github.UnknownObjectException) as raisedexp: > github_integration.get_org_installation(org="GithubApp-Test-Org-404") tests/GithubIntegration.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:287: in get_org_installation return self._get_installed_app(url=f"/orgs/{org}/installation") github/GithubIntegration.py:208: in _get_installed_app headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ GithubIntegration.testGetInstallationWithExpiredJWT ______________ self = def testGetInstallationWithExpiredJWT(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) with self.assertRaises(github.GithubException) as raisedexp: > github_integration.get_org_installation(org="GithubApp-Test-Org") tests/GithubIntegration.py:242: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:287: in get_org_installation return self._get_installed_app(url=f"/orgs/{org}/installation") github/GithubIntegration.py:208: in _get_installed_app headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ GithubIntegration.testGetInstallations ____________________ self = def testGetInstallations(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) installations = github_integration.get_installations() > self.assertEqual(len(list(installations)), 2) tests/GithubIntegration.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ GithubIntegration.testGetOrgInstallation ___________________ self = def testGetOrgInstallation(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) > installation = github_integration.get_org_installation(org="GithubApp-Test-Org") tests/GithubIntegration.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:287: in get_org_installation return self._get_installed_app(url=f"/orgs/{org}/installation") github/GithubIntegration.py:208: in _get_installed_app headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ GithubIntegration.testGetRepoInstallation ___________________ self = def testGetRepoInstallation(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) > installation = github_integration.get_repo_installation(owner="ammarmallik", repo="test-runner") tests/GithubIntegration.py:219: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:295: in get_repo_installation return self._get_installed_app(url=f"/repos/{owner}/{repo}/installation") github/GithubIntegration.py:208: in _get_installed_app headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ GithubIntegration.testGetUserInstallation ___________________ self = def testGetUserInstallation(self): auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY) github_integration = github.GithubIntegration(auth=auth) > installation = github_integration.get_user_installation(username="ammarmallik") tests/GithubIntegration.py:205: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/GithubIntegration.py:302: in get_user_installation return self._get_installed_app(url=f"/users/{username}/installation") github/GithubIntegration.py:208: in _get_installed_app headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers()) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Github.testGetEmojis _____________________________ self = def testGetEmojis(self): > emojis = self.g.get_emojis() tests/Github_.py:252: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:940: in get_emojis headers, attributes = self.__requester.requestJsonAndCheck("GET", "/emojis") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Github.testGetEvents _____________________________ self = def testGetEvents(self): > self.assertListKeyBegin( self.g.get_events(), lambda e: e.type, ["PushEvent", "WatchEvent", "PushEvent", "CommitCommentEvent"], ) tests/Github_.py:628: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Github.testGetGists ______________________________ self = def testGetGists(self): > self.assertListKeyBegin( self.g.get_gists(), lambda g: g.id, [ "2729695", "2729656", "2729597", "2729584", "2729569", "2729554", "2729543", "2729537", "2729536", "2729533", "2729525", "2729522", "2729519", "2729515", "2729506", "2729487", "2729484", "2729482", "2729441", "2729432", "2729420", "2729398", "2729372", "2729371", "2729351", "2729346", "2729316", "2729304", "2729296", "2729276", "2729272", "2729265", "2729195", "2729160", "2729143", "2729127", "2729119", "2729113", "2729103", "2729069", "2729059", "2729051", "2729029", "2729027", "2729026", "2729022", "2729002", "2728985", "2728979", "2728964", "2728937", "2728933", "2728884", "2728869", "2728866", "2728855", "2728854", "2728853", "2728846", "2728825", "2728814", "2728813", "2728812", "2728805", "2728802", "2728800", "2728798", "2728797", "2728796", "2728793", "2728758", "2728754", "2728751", "2728748", "2728721", "2728716", "2728715", "2728705", "2728701", "2728699", "2728697", "2728688", "2728683", "2728677", "2728649", "2728640", "2728625", "2728620", "2728615", "2728614", "2728565", "2728564", "2728554", "2728523", "2728519", "2728511", "2728497", "2728496", "2728495", "2728487", ], ) tests/Github_.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Github.testGetGistsWithSince _________________________ self = def testGetGistsWithSince(self): > self.assertListKeyBegin( self.g.get_gists(since=datetime(2018, 10, 2, 10, 38, 30, 00)), lambda g: g.id, [ "69b8a5831b74946db944c5451017fa40", "c22050a8705e93d170e0d4ca9c02e40c", "a7a95e1a194e07960364a5b32c56ac5f", "a25d9ace89b574f95bf0724f95a84fc2", "3195465", ], ) tests/Github_.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Github.testGetGitignoreTemplate ________________________ self = def testGetGitignoreTemplate(self): > t = self.g.get_gitignore_template("Python") tests/Github_.py:412: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:932: in get_gitignore_template headers, attributes = self.__requester.requestJsonAndCheck("GET", f"/gitignore/templates/{name}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Github.testGetGitignoreTemplates _______________________ self = def testGetGitignoreTemplates(self): self.assertEqual( > self.g.get_gitignore_templates(), [ "Actionscript", "Android", "AppceleratorTitanium", "Autotools", "Bancha", "C", "C++", "CFWheels", "CMake", "CSharp", "CakePHP", "Clojure", "CodeIgniter", "Compass", "Concrete5", "Coq", "Delphi", "Django", "Drupal", "Erlang", "ExpressionEngine", "Finale", "ForceDotCom", "FuelPHP", "GWT", "Go", "Grails", "Haskell", "Java", "Jboss", "Jekyll", "Joomla", "Jython", "Kohana", "LaTeX", "Leiningen", "LemonStand", "Lilypond", "Lithium", "Magento", "Maven", "Node", "OCaml", "Objective-C", "Opa", "OracleForms", "Perl", "PlayFramework", "Python", "Qooxdoo", "Qt", "R", "Rails", "RhodesRhomobile", "Ruby", "Scala", "Sdcc", "SeamGen", "SketchUp", "SugarCRM", "Symfony", "Symfony2", "SymphonyCMS", "Target3001", "Tasm", "Textpattern", "TurboGears2", "Unity", "VB.Net", "Waf", "Wordpress", "Yii", "ZendFramework", "gcov", "nanoc", "opencart", ], ) tests/Github_.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:923: in get_gitignore_templates headers, data = self.__requester.requestJsonAndCheck("GET", "/gitignore/templates") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Github.testGetGlobalAdvisories ________________________ self = def testGetGlobalAdvisories(self): > self.assertListKeyEqual( self.g.get_global_advisories(ecosystem="pub"), lambda a: a.ghsa_id, [ "GHSA-9324-jv53-9cc8", "GHSA-9f2c-xxfm-32mj", "GHSA-4xh4-v2pq-jvhm", "GHSA-jwpw-q68h-r678", "GHSA-4rgh-jx4f-qfcq", ], ) tests/Github_.py:176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Github.testGetGlobalAdvisoriesByCVE ______________________ self = def testGetGlobalAdvisoriesByCVE(self): > self.assertListKeyEqual( self.g.get_global_advisories(cve_id="CVE-2023-38503"), lambda a: a.ghsa_id, [ "GHSA-gggm-66rh-pp98", ], ) tests/Github_.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Github.testGetGlobalAdvisoriesByGHSA _____________________ self = def testGetGlobalAdvisoriesByGHSA(self): > self.assertListKeyEqual( self.g.get_global_advisories(ghsa_id="GHSA-9324-jv53-9cc8"), lambda a: a.ghsa_id, [ "GHSA-9324-jv53-9cc8", ], ) tests/Github_.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Github.testGetGlobalAdvisoriesManyFilters ___________________ self = def testGetGlobalAdvisoriesManyFilters(self): cases = [ {"cwes": [200, 900], "affects": ["directus", "made_up"], "modified": ">2023-07-01"}, {"cwes": ["200", "900"], "affects": ["directus"], "updated": ">2023-07-01"}, {"cwes": "200,900", "affects": "directus", "published": ">2023-07-01"}, ] for case in cases: with self.subTest(**case): advisories = self.g.get_global_advisories( type="reviewed", ecosystem="npm", severity="medium", # cwes=case["cwes"], is_withdrawn=False, # affects=case["affects"], # modified=">2023-07-01", direction="desc", sort="updated", **case, ) > self.assertListKeyEqual( advisories, lambda a: a.ghsa_id, [ "GHSA-gggm-66rh-pp98", ], ) tests/Github_.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ Github.testGetHook ______________________________ self = def testGetHook(self): > hook = self.g.get_hook("activecollab") tests/Github_.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:886: in get_hook headers, attributes = self.__requester.requestJsonAndCheck("GET", f"/hooks/{name}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Github.testGetHookDeliveries _________________________ self = def testGetHookDeliveries(self): > deliveries = list(self.g.get_hook_deliveries(257993)) tests/Github_.py:298: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:916: in get_hook_deliveries headers, data = self.__requester.requestJsonAndCheck("GET", f"/hooks/{hook_id}/deliveries") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Github.testGetHookDelivery __________________________ self = def testGetHookDelivery(self): > delivery = self.g.get_hook_delivery(257993, 12345) tests/Github_.py:274: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:906: in get_hook_delivery headers, attributes = self.__requester.requestJsonAndCheck("GET", f"/hooks/{hook_id}/deliveries/{delivery_id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Github.testGetHooks ______________________________ self = def testGetHooks(self): > hooks = self.g.get_hooks() tests/Github_.py:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:894: in get_hooks headers, data = self.__requester.requestJsonAndCheck("GET", "/hooks") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Github.testGetLicense _____________________________ self = def testGetLicense(self): self.assertEqual( > self.g.get_license("mit").description, "A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.", ) tests/Github_.py:623: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:351: in get_license headers, data = self.__requester.requestJsonAndCheck("GET", f"/licenses/{key}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Github.testGetLicenses ____________________________ self = def testGetLicenses(self): > self.assertListKeyBegin( self.g.get_licenses(), lambda r: r.name, [ "GNU General Public License v3.0", 'BSD 2-Clause "Simplified" License', "MIT License", "GNU Lesser General Public License v2.1", "GNU General Public License v2.0", "GNU Lesser General Public License v3.0", "Mozilla Public License 2.0", 'BSD 3-Clause "New" or "Revised" License', ], ) tests/Github_.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Github.testGetOrganizations __________________________ self = def testGetOrganizations(self): > self.assertListKeyBegin( self.g.get_organizations(), lambda u: u.login, [ "errfree", "engineyard", "ministrycentered", "collectiveidea", "ogc", "sevenwire", "entryway", ], ) tests/Github_.py:546: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Github.testGetOrganizationsSince _______________________ self = def testGetOrganizationsSince(self): > self.assertListKeyBegin( self.g.get_organizations(since=1000), lambda u: u.login, [ "railslove", "railsdog", "netguru", "webhostio", "animikii", "sauspiel", "wherecloud", "triveos", ], ) tests/Github_.py:561: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Github.testGetRepoFromFullName ________________________ self = def testGetRepoFromFullName(self): self.assertEqual( > self.g.get_repo("jacquev6/PyGithub").description, "Python library implementing the full Github API v3", ) tests/Github_.py:318: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Github.testGetRepoFromId ___________________________ self = def testGetRepoFromId(self): self.assertEqual( > self.g.get_repo(3544490).description, "Python library implementing the full Github API v3", ) tests/Github_.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Github.testGetRepos ______________________________ self = def testGetRepos(self): > self.assertListKeyBegin( self.g.get_repos(), lambda r: r.name, [ "grit", "merb-core", "rubinius", "god", "jsawesome", "jspec", "exception_logger", "ambition", ], ) tests/Github_.py:577: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Github.testGetReposSince ___________________________ self = def testGetReposSince(self): > self.assertListKeyBegin( self.g.get_repos(since=1000), lambda r: r.name, [ "jquery-humanize-messages-plugin", "4slicer", "fixture-scenarios", "mongrel_proctitle", "rails-plugins", ], ) tests/Github_.py:593: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Github.testGetUserById ____________________________ self = def testGetUserById(self): > self.assertEqual(self.g.get_user_by_id(583231).login, "octocat") tests/Github_.py:431: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:389: in get_user_by_id headers, data = self.__requester.requestJsonAndCheck("GET", f"/user/{user_id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Github.testGetUsers ______________________________ self = def testGetUsers(self): > self.assertListKeyBegin( self.g.get_users(), lambda u: u.login, [ "mojombo", "defunkt", "pjhyett", "wycats", "ezmobius", "ivey", "evanphx", "vanpelt", "wayneeseguin", "brynary", "kevinclark", "technoweenie", "macournoyer", "takeo", "Caged", "topfunky", "anotherjesse", "roland", "lukas", "fanvsfan", "tomtt", "railsjitsu", "nitay", "kevwil", "KirinDave", "jamesgolick", "atmos", "errfree", "mojodna", "bmizerany", "jnewland", "joshknowles", "hornbeck", "jwhitmire", "elbowdonkey", "reinh", "timocratic", "bs", "rsanheim", "schacon", "uggedal", "bruce", "sam", "mmower", "abhay", "rabble", "benburkert", "indirect", "fearoffish", "ry", "engineyard", "jsierles", "tweibley", "peimei", "brixen", "tmornini", "outerim", "daksis", "sr", "lifo", "rsl", "imownbey", "dylanegan", "jm", "willcodeforfoo", "jvantuyl", "BrianTheCoder", "freeformz", "hassox", "automatthew", "queso", "lancecarlson", "drnic", "lukesutton", "danwrong", "hcatlin", "jfrost", "mattetti", "ctennis", "lawrencepit", "marcjeanson", "grempe", "peterc", "ministrycentered", "afarnham", "up_the_irons", "evilchelu", "heavysixer", "brosner", "danielmorrison", "danielharan", "kvnsmth", "collectiveidea", "canadaduane", "nate", "dstrelau", "sunny", "dkubb", "jnicklas", "richcollins", "simonjefford", ], ) tests/Github_.py:434: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Github.testGetUsersSince ___________________________ self = def testGetUsersSince(self): > self.assertListKeyBegin(self.g.get_users(since=1000), lambda u: u.login, ["sbecker"]) tests/Github_.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ GlobalAdvisory.testAttributes _________________________ self = def testAttributes(self): > self.advisory = self.g.get_global_advisory("GHSA-wqc8-x2pr-7jqh") tests/GlobalAdvisory.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:525: in get_global_advisory headers, data = self.__requester.requestJsonAndCheck("GET", f"/advisories/{ghsa_id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ GlobalAdvisory.testNewlyReleased _______________________ self = def testNewlyReleased(self): """ Test an advisory that was freshly released and does not have values for all fields. """ > self.advisory = self.g.get_global_advisory("GHSA-cx3j-qqxj-9597") tests/GlobalAdvisory.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:525: in get_global_advisory headers, data = self.__requester.requestJsonAndCheck("GET", f"/advisories/{ghsa_id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GraphQl.testDefaultUrl ____________________________ self = def testDefaultUrl(self): > pull = self.g.get_repo("PyGithub/PyGithub").get_pull(31) tests/GraphQl.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ GraphQl.testMutation _____________________________ self = def testMutation(self): requester = self.g._Github__requester > header, data = requester.graphql_named_mutation( "followOrganization", {"organizationId": "O_kgDOAKxBpA"}, "organization { name }" ) tests/GraphQl.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:721: in graphql_named_mutation headers, data = self.graphql_query(query, {"input": mutation_input}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GraphQl.testMutationClass ___________________________ self = def testMutationClass(self): requester = self.g._Github__requester > org = requester.graphql_named_mutation_class( "followOrganization", {"organizationId": "O_kgDOAKxBpA"}, "organization { name }", "organization", github.Organization.Organization, ) tests/GraphQl.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:733: in graphql_named_mutation_class headers, data = self.graphql_named_mutation(mutation_name, mutation_input, output_schema) github/Requester.py:721: in graphql_named_mutation headers, data = self.graphql_query(query, {"input": mutation_input}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ GraphQl.testNode _______________________________ self = def testNode(self): requester = self.g._Github__requester > headers, data = requester.graphql_node("D_kwDOADYVqs4ATJZD", "title", "Discussion") tests/GraphQl.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:676: in graphql_node headers, data = self.graphql_query(query, {"id": node_id}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GraphQl.testNodeClass _____________________________ self = def testNodeClass(self): requester = self.g._Github__requester > discussion = requester.graphql_node_class( "D_kwDOADYVqs4ATJZD", "title", github.RepositoryDiscussion.RepositoryDiscussion, "Discussion" ) tests/GraphQl.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:695: in graphql_node_class headers, data = self.graphql_node(node_id, graphql_schema, node_type) github/Requester.py:676: in graphql_node headers, data = self.graphql_query(query, {"id": node_id}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ GraphQl.testOtherPort _____________________________ self = def testOtherPort(self): base_url = "https://my.enterprise.com:8080/api/v3" gh = Github(base_url=base_url) > pull = gh.get_repo("PyGithub/PyGithub").get_pull(31) tests/GraphQl.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _____________________________ GraphQl.testOtherUrl _____________________________ self = def testOtherUrl(self): base_url = "https://my.enterprise.com/api/v3" gh = Github(base_url=base_url) > pull = gh.get_repo("PyGithub/PyGithub").get_pull(31) tests/GraphQl.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("my.enterprise.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ GraphQl.testPaginationAndRestIntegration ___________________ self = def testPaginationAndRestIntegration(self): > repo = self.g.get_repo("PyGithub/PyGithub") tests/GraphQl.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ GraphQl.testQuery _______________________________ self = def testQuery(self): requester = self.g._Github__requester query = """ query Q($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { url } }""" variables = {"owner": "PyGithub", "name": "PyGithub"} > header, data = requester.graphql_query(query, variables) tests/GraphQl.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ GraphQl.testQueryGraphQlClass _________________________ self = def testQueryGraphQlClass(self): requester = self.g._Github__requester query = """ query Q($id: ID!) { node(id: $id) { ... on DiscussionComment { url } } }""" variables = {"id": "DC_kwDOADYVqs4AU3Mg"} > comment = requester.graphql_query_class( query, variables, ["node"], github.RepositoryDiscussionComment.RepositoryDiscussionComment ) tests/GraphQl.py:183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:704: in graphql_query_class headers, data = self.graphql_query(query, variables) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ GraphQl.testQueryRestClass __________________________ self = def testQueryRestClass(self): requester = self.g._Github__requester query = """ query Q($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { url } }""" variables = {"owner": "PyGithub", "name": "PyGithub"} > repo = requester.graphql_query_class(query, variables, ["repository"], github.Repository.Repository) tests/GraphQl.py:172: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Requester.py:704: in graphql_query_class headers, data = self.graphql_query(query, variables) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Hook.testAttributes ______________________________ self = def setUp(self): super().setUp() > self.hook = self.g.get_user().get_repo("PyGithub").get_hook(257993) tests/Hook.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ Hook.testDelete ________________________________ self = def setUp(self): super().setUp() > self.hook = self.g.get_user().get_repo("PyGithub").get_hook(257993) tests/Hook.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Hook.testEditWithAllParameters ________________________ self = def setUp(self): super().setUp() > self.hook = self.g.get_user().get_repo("PyGithub").get_hook(257993) tests/Hook.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Hook.testEditWithMinimalParameters ______________________ self = def setUp(self): super().setUp() > self.hook = self.g.get_user().get_repo("PyGithub").get_hook(257993) tests/Hook.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________________ Hook.testPing _________________________________ self = def setUp(self): super().setUp() > self.hook = self.g.get_user().get_repo("PyGithub").get_hook(257993) tests/Hook.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________________ Hook.testTest _________________________________ self = def setUp(self): super().setUp() > self.hook = self.g.get_user().get_repo("PyGithub").get_hook(257993) tests/Hook.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Installation.testGetGithubForInstallation ___________________ self = def setUp(self): super().setUp() app_id = 36541767 private_key = GithubIntegration.PRIVATE_KEY self.auth = AppAuth(app_id, private_key) self.integration = github.GithubIntegration(auth=self.auth) > self.installations = list(self.integration.get_installations()) tests/Installation.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Installation.testGetRepos ___________________________ self = def setUp(self): super().setUp() app_id = 36541767 private_key = GithubIntegration.PRIVATE_KEY self.auth = AppAuth(app_id, private_key) self.integration = github.GithubIntegration(auth=self.auth) > self.installations = list(self.integration.get_installations()) tests/Installation.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Installation.testRequester __________________________ self = def setUp(self): super().setUp() app_id = 36541767 private_key = GithubIntegration.PRIVATE_KEY self.auth = AppAuth(app_id, private_key) self.integration = github.GithubIntegration(auth=self.auth) > self.installations = list(self.integration.get_installations()) tests/Installation.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue.testAddAndRemoveAssignees ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Issue.testAddAndRemoveLabels _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Issue.testAddAndRemoveLabelsWithStringArguments ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Issue.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue.testCreateComment ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue.testCreateReaction ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Issue.testDeleteAndSetLabels _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Issue.testDeleteAndSetLabelsWithStringArguments ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue.testDeleteReaction ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Issue.testEditResetAssignee __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Issue.testEditResetMilestone _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue.testEditWithAllParameters ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Issue.testEditWithStateReasonNotPlanned ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Issue.testEditWithStateReasonReopened _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue.testEditWithoutParameters ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue.testGetComments _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Issue.testGetCommentsSince __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Issue.testGetEvents ______________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Issue.testGetLabels ______________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue.testGetReactions ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue.testGetTimeline _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________________ Issue.testLock ________________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ Issue.testUnlock _______________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Issue131.testGetPullWithOrgHeadUser ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.g.get_user("openmicroscopy").get_repo("ome-documentation") tests/Issue131.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Issue131.testGetPullsWithOrgHeadUser _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.g.get_user("openmicroscopy").get_repo("ome-documentation") tests/Issue131.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Issue133.testGetPageWithoutInitialArguments __________________ self = def testGetPageWithoutInitialArguments(self): > self.assertEqual(len(self.user.get_followers().get_page(0)), 22) tests/Issue133.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:414: in get_page headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______ Issue134.testGetAuthorizationsFailsWhenAutenticatedThroughOAuth ________ self = def testGetAuthorizationsFailsWhenAutenticatedThroughOAuth(self): g = github.Github(auth=self.oauth_token) with self.assertRaises(github.GithubException) as raisedexp: > list(g.get_user().get_authorizations()) tests/Issue134.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __ Issue134.testGetAuthorizationsSucceedsWhenAutenticatedThroughLoginPassword __ self = def testGetAuthorizationsSucceedsWhenAutenticatedThroughLoginPassword(self): g = github.Github(auth=self.login) > self.assertListKeyEqual( g.get_user().get_authorizations(), lambda a: a.note, [None, None, "cligh", None, None, "GitHub Android App"], ) tests/Issue134.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Issue134.testGetOAuthScopesFromHeader _____________________ self = def testGetOAuthScopesFromHeader(self): g = github.Github(auth=self.oauth_token) self.assertEqual(g.oauth_scopes, None) > g.get_user().name tests/Issue134.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:286: in name self._completeIfNotSet(self._name) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue139.testCompletion ____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user().get_repo("PyGithub").get_issue(139).user tests/Issue139.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ Issue140.testGetDirContentsThenLazyCompletionOfFile ______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("twitter/bootstrap") tests/Issue140.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Issue140.testGetDirContentsWithRef ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("twitter/bootstrap") tests/Issue140.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Issue140.testGetFileContents _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("twitter/bootstrap") tests/Issue140.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue142.testDecodeJson ____________________________ self = def testDecodeJson(self): > self.assertEqual(github.Github().get_rate_limit().core.limit, 60) tests/Issue142.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:334: in get_rate_limit headers, data = self.__requester.requestJsonAndCheck("GET", "/rate_limit") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Issue174.testGetDirContentsWhithHttpRedirect _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("twitter/bootstrap") tests/Issue174.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Organization.testIssue2030CreateProject ____________________ self = def testIssue2030CreateProject(self): super().setUp() project = "ultratendency" > self.user = self.g.get_user("karthik-kadajji-t") tests/Issue2030.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue214.testAssignees ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue214.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Issue214.testCollaborators __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue214.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue214.testCreateIssue ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue214.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue214.testEditIssue ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue214.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue214.testGetIssues ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue214.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue216.testIteration ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/Issue216.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue278.testIteration ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/Issue278.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue33.testClosedIssues ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/Issue33.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue33.testOpenIssues ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/Issue33.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ Issue494.testRepr _______________________________ self = def setUp(self): super().setUp() self.repo = self.g.get_repo("apache/brooklyn-server", lazy=True) > self.pull = self.repo.get_pull(465) tests/Issue494.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Issue50.testAddLabelToIssue __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue50.testCreateIssueWithLabel _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue50.testCreateLabel ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Issue50.testGetIssuesWithLabel ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Issue50.testGetLabel _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue50.testGetLabels _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Issue50.testIssueGetLabels __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Issue50.testIssueLabels ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue50.testRemoveLabelFromIssue _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Issue50.testSetIssueLabels __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue50.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Issue54.testConversion ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("TestRepo") tests/Issue54.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue572.testIssueAsPullRequest ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue572.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Issue572.testPullReqeustAsIssue ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue572.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Issue80.testIgnoreHttpsFromGithubEnterprise __________________ self = def testIgnoreHttpsFromGithubEnterprise(self): g = github.Github(auth=self.login, base_url="http://my.enterprise.com/some/prefix") # http here > org = g.get_organization("BeaverSoftware") tests/Issue80.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _____________ Issue80.testIgnoreHttpsFromGithubEnterpriseWithPort ______________ self = def testIgnoreHttpsFromGithubEnterpriseWithPort(self): g = github.Github( auth=self.login, base_url="http://my.enterprise.com:1234/some/prefix", ) # http here > org = g.get_organization("BeaverSoftware") tests/Issue80.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.com:1234"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Issue823.testGetPendingInvitationAttributes __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("p-society") tests/Issue823.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Issue87.testCreateIssueWithEscapedPercentInBody ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue87.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Issue87.testCreateIssueWithEscapedPercentInTitle _______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue87.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Issue87.testCreateIssueWithPercentInBody ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue87.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Issue87.testCreateIssueWithPercentInTitle ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Issue87.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Issue937.testCollaboratorsAffiliation _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Issue937.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ Issue945.testReservedPaginatedListAttributePreservation ____________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/Issue945.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ IssueComment.testAttributes __________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ IssueComment.testCreateReaction ________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ IssueComment.testDelete ____________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ IssueComment.testDeleteReaction ________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ IssueComment.testEdit _____________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ IssueComment.testGetReactions _________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ IssueComment.testMinimize ___________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ IssueComment.testUnminimize __________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_issue(28).get_comment(5808311) tests/IssueComment.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ IssueEvent.testEvent_added_to_project_Attributes _______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ IssueEvent.testEvent_assigned_Attributes ___________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ IssueEvent.testEvent_base_ref_changed_Attributes _______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ IssueEvent.testEvent_closed_Attributes ____________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ IssueEvent.testEvent_converted_note_to_issue_Attributes ____________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ IssueEvent.testEvent_demilestoned_Attributes _________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ IssueEvent.testEvent_head_ref_deleted_Attributes _______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ IssueEvent.testEvent_head_ref_restored_Attributes _______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ IssueEvent.testEvent_labeled_Attributes ____________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ IssueEvent.testEvent_locked_Attributes ____________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ IssueEvent.testEvent_marked_as_duplicate_Attributes ______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ IssueEvent.testEvent_mentioned_Attributes ___________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ IssueEvent.testEvent_merged_Attributes ____________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ IssueEvent.testEvent_milestoned_Attributes __________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ IssueEvent.testEvent_moved_columns_in_project_Attributes ___________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ IssueEvent.testEvent_referenced_Attributes __________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ IssueEvent.testEvent_removed_from_project_Attributes _____________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ IssueEvent.testEvent_renamed_Attributes ____________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ IssueEvent.testEvent_reopened_Attributes ___________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ IssueEvent.testEvent_review_dismissed_Attributes _______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ IssueEvent.testEvent_review_request_removed_Attributes ____________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ IssueEvent.testEvent_review_requested_Attributes _______________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ IssueEvent.testEvent_subscribed_Attributes __________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ IssueEvent.testEvent_unassigned_Attributes __________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ IssueEvent.testEvent_unlabeled_Attributes ___________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ IssueEvent.testEvent_unlocked_Attributes ___________________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ IssueEvent.testEvent_unmarked_as_duplicate_Attributes _____________ self = def setUp(self): super().setUp() repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) # From Issue #30 > self.event_subscribed = repo.get_issues_event(16347479) tests/IssueEvent.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3020: in get_issues_event headers, data = self._requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Label.testAttributes _____________________________ self = def setUp(self): super().setUp() > self.label = self.g.get_user().get_repo("PyGithub").get_label("Bug") tests/Label.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ Label.testDelete _______________________________ self = def setUp(self): super().setUp() > self.label = self.g.get_user().get_repo("PyGithub").get_label("Bug") tests/Label.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________________ Label.testEdit ________________________________ self = def setUp(self): super().setUp() > self.label = self.g.get_user().get_repo("PyGithub").get_label("Bug") tests/Label.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ License.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.license = self.g.get_license("mit") tests/License.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:351: in get_license headers, data = self.__requester.requestJsonAndCheck("GET", f"/licenses/{key}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Logging.testLoggingWithBaseUrl ________________________ self = def testLoggingWithBaseUrl(self): # ReplayData forged, not recorded self.assertEqual( > github.Github(base_url="http://my.enterprise.com/my/prefix").get_user("jacquev6").name, "Vincent Jacques", ) tests/Logging_.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError __________________ Logging.testLoggingWithBasicAuthentication __________________ self = def testLoggingWithBasicAuthentication(self): > self.assertEqual(github.Github(auth=self.login).get_user().name, "Vincent Jacques") tests/Logging_.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:286: in name self._completeIfNotSet(self._name) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Logging.testLoggingWithOAuthAuthentication __________________ self = def testLoggingWithOAuthAuthentication(self): > self.assertEqual(github.Github(auth=self.oauth_token).get_user().name, "Vincent Jacques") tests/Logging_.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:286: in name self._completeIfNotSet(self._name) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Logging.testLoggingWithoutAuthentication ___________________ self = def testLoggingWithoutAuthentication(self): > self.assertEqual(github.Github().get_user("jacquev6").name, "Vincent Jacques") tests/Logging_.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Markdown.testRenderGithubFlavoredMarkdown ___________________ self = def setUp(self): super().setUp() self.text = "MyTitle\n=======\n\nIssue #1" > self.repo = self.g.get_user().get_repo("PyGithub") tests/Markdown.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Markdown.testRenderMarkdown __________________________ self = def setUp(self): super().setUp() self.text = "MyTitle\n=======\n\nIssue #1" > self.repo = self.g.get_user().get_repo("PyGithub") tests/Markdown.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Migration.testAttributes ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Migration.testDelete _____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Migration.testGetArchiveUrlWhenDeleted ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Migration.testGetArchiveUrlWhenExported ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Migration.testGetArchiveUrlWhenNotExported __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Migration.testGetStatus ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Migration.testUnlockRepo ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.migration = self.user.get_migrations()[0] tests/Migration.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Milestone.testAttributes ___________________________ self = def setUp(self): super().setUp() > self.milestone = self.g.get_user().get_repo("PyGithub").get_milestone(1) tests/Milestone.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Milestone.testDelete _____________________________ self = def setUp(self): super().setUp() > self.milestone = self.g.get_user().get_repo("PyGithub").get_milestone(1) tests/Milestone.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Milestone.testEditWithAllParameters ______________________ self = def setUp(self): super().setUp() > self.milestone = self.g.get_user().get_repo("PyGithub").get_milestone(1) tests/Milestone.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Milestone.testEditWithMinimalParameters ____________________ self = def setUp(self): super().setUp() > self.milestone = self.g.get_user().get_repo("PyGithub").get_milestone(1) tests/Milestone.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Milestone.testGetLabels ____________________________ self = def setUp(self): super().setUp() > self.milestone = self.g.get_user().get_repo("PyGithub").get_milestone(1) tests/Milestone.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ NamedUser.testAttributesOfOtherUser ______________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ NamedUser.testAttributesOfSelf ________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ NamedUser.testGetEvents ____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ NamedUser.testGetFollowers __________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ NamedUser.testGetFollowing __________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ NamedUser.testGetGists ____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ NamedUser.testGetKeys _____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ NamedUser.testGetOrganizationMembership ____________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ NamedUser.testGetOrganizationMembershipNotMember _______________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ NamedUser.testGetOrgs _____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ NamedUser.testGetPublicEvents _________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ NamedUser.testGetPublicReceivedEvents _____________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ NamedUser.testGetReceivedEvents ________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ NamedUser.testGetRepo _____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ NamedUser.testGetRepos ____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ NamedUser.testGetReposWithAllArgs _______________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ NamedUser.testGetStarred ___________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ NamedUser.testGetSubscriptions ________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ NamedUser.testGetWatched ___________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ NamedUser.testHasInFollowing _________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ NamedUser.testUserEquality __________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("jacquev6") tests/NamedUser.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ NamedUser1430.testGetProjects _________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("ahhda") tests/NamedUser1430.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Notification.testMarkAsDone __________________________ self = def setUp(self): super().setUp() > self.notification = self.g.get_user().get_notifications()[0] tests/Notification.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Notification.testMarkAsRead __________________________ self = def setUp(self): super().setUp() > self.notification = self.g.get_user().get_notifications()[0] tests/Notification.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Organization.testAddMembersAdminRole _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testAddMembersDefaultRole ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testAttributes __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Organization.testCreateActionsSecret _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Organization.testCreateCustomProperties ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testCreateCustomProperty _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Organization.testCreateCustomPropertyValues __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Organization.testCreateDependabotSecret ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Organization.testCreateDependabotSecretSelected ________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testCreateFork __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Organization.testCreateHookWithAllParameters _________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Organization.testCreateHookWithMinimalParameters _______________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Organization.testCreateMigration _______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Organization.testCreateRepoFromTemplate ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ Organization.testCreateRepoFromTemplateWithAllArguments ____________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Organization.testCreateRepoWithAllArguments __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Organization.testCreateRepoWithMinimalArguments ________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ Organization.testCreateRepositoryWithAutoInit _________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testCreateSecretSelected _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testCreateTeam __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Organization.testCreateTeamWithAllArguments __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Organization.testCreateVariable ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Organization.testCreateVariableSelected ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testDeleteHook __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Organization.testEditHookWithAllParameters __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ Organization.testEditHookWithMinimalParameters ________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testEditWithAllArguments _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testEditWithoutArguments _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Organization.testGetCustomProperties _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testGetCustomProperty ______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Organization.testGetDependabotAlerts _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ Organization.testGetDependabotAlertsWithAllArguments _____________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testGetDependabotSecrets _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Organization.testGetEvents __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Organization.testGetHook ___________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testGetHookDeliveries ______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Organization.testGetHookDelivery _______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Organization.testGetHooks ___________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testGetInstallations _______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Organization.testGetIssues __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Organization.testGetIssuesWithAllArguments __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testGetMembers __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Organization.testGetMigrations ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Organization.testGetOutsideCollaborators ___________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testGetPublicMembers _______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Organization.testGetRepos ___________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Organization.testGetReposSorted ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testGetReposWithType _______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Organization.testGetSecret __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testGetSecrets __________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Organization.testGetSecretsFail ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Organization.testGetTeamBySlug ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Organization.testGetTeams ___________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Organization.testGetVariable _________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Organization.testGetVariables _________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testInviteUserAsNonOwner _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testInviteUserByEmail ______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization.testInviteUserByName _______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Organization.testInviteUserWithBoth ______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testInviteUserWithNeither ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Organization.testInviteUserWithRoleAndTeam __________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Organization.testListCustomPropertyValues ___________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Organization.testMembers ___________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testOrgGetSecretAssertion ____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Organization.testOrgSecretEdit ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testOutsideCollaborators _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Organization.testPublicMembers ________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization.testRemoveCustomProperty _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Organization.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Organization1437.testCreateProject ______________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("PyGithubSampleOrg") tests/Organization1437.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Organization2072.testCancelInvitation _____________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("TestOrganization2072") tests/Organization2072.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ OrganizationHasInMembers.testHasInMembers ___________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("meneal") tests/OrganizationHasInMembers.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PaginatedList.testCustomPerPage ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ PaginatedList.testCustomPerPageIteration ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ PaginatedList.testCustomPerPageReversedIteration _______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ PaginatedList.testCustomPerPageWithGetPage __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ PaginatedList.testCustomPerPageWithNoUrlParams ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ PaginatedList.testCustomPerPageWithNoUrlParams2 ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PaginatedList.testGetFirstPage ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PaginatedList.testGetThirdPage ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____ PaginatedList.testGettingTheReversedListDoesNotModifyTheOriginalList _____ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PaginatedList.testGraphQlPagination ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ PaginatedList.testIntIndexingAfterIteration __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ PaginatedList.testIntIndexingInFirstPage ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ PaginatedList.testIntIndexingInThirdPage ___________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PaginatedList.testInterruptedIteration ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ PaginatedList.testInterruptedIterationInSlice _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PaginatedList.testIsApiType __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PaginatedList.testIteration __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ PaginatedList.testIterationWithPrefetchedFirstPage ______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PaginatedList.testMergeDicts _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PaginatedList.testNoFirstPage _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PaginatedList.testOverrideAttributes _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ PaginatedList.testReversedIterationSupportsIterator ______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ PaginatedList.testReversedIterationWithMultiplePages _____________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ PaginatedList.testReversedIterationWithSinglePage _______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PaginatedList.testSeveralIterations ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ PaginatedList.testSliceIndexingInFirstPage __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ PaginatedList.testSliceIndexingUntilEnd ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ PaginatedList.testSliceIndexingUntilFourthPage ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ PaginatedList.testTotalCountWithDictionary __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ PaginatedList.testTotalCountWithNoLastPage __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user("openframeworks").get_repo("openFrameworks") tests/PaginatedList.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Permissions.testUserRepoPermissionAttributes _________________ self = def setUp(self): super().setUp() > self.userRepo = self.g.get_repo("PyGithub/PyGithub") tests/Permissions.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Permissions.testUserRepoPermissionRepresentation _______________ self = def setUp(self): super().setUp() > self.userRepo = self.g.get_repo("PyGithub/PyGithub") tests/Permissions.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Persistence.testLoad _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("akfish/PyGithub") tests/Persistence.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Persistence.testLoadAndUpdate _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("akfish/PyGithub") tests/Persistence.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Pickle.testPickleGithub ____________________________ self = def testPickleGithub(self): gh = github.Github() > gh2 = pickle.loads(pickle.dumps(gh)) E AttributeError: 'Requester' object has no attribute '' tests/Pickle.py:38: AttributeError ________________________ Pickle.testPicklePaginatedList ________________________ self = def testPicklePaginatedList(self): gh = github.Github() repo = gh.get_repo(REPO_NAME, lazy=True) branches = repo.get_branches() > branches2 = pickle.loads(pickle.dumps(branches)) E AttributeError: 'Requester' object has no attribute '' tests/Pickle.py:57: AttributeError _________________________ Pickle.testPickleRepository __________________________ self = def testPickleRepository(self): gh = github.Github() repo = gh.get_repo(REPO_NAME, lazy=True) > repo2 = pickle.loads(pickle.dumps(repo)) E AttributeError: 'Requester' object has no attribute '' tests/Pickle.py:47: AttributeError _________________ PoolSize.testReturnsRepoAfterSettingPoolSize _________________ self = def testReturnsRepoAfterSettingPoolSize(self): > repository = self.g.get_repo(REPO_NAME) tests/PoolSize.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ PoolSize.testReturnsRepoAfterSettingPoolSizeHttp _______________ self = def testReturnsRepoAfterSettingPoolSizeHttp(self): g = github.Github( auth=self.login, base_url="http://my.enterprise.com", pool_size=20, ) > repository = g.get_repo(REPO_NAME) tests/PoolSize.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _______________________ Project.testCreateCardFromIssue ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Project.testCreateCardWithNote ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Project.testCreateColumn ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Project.testEditCardArchived _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Project.testEditCardNote ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Project.testEditCardWithoutParameters _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Project.testGetAllProjectCards ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Project.testGetOrganizationProjects ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Project.testGetProject ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Project.testGetProjectCardContent _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Project.testGetRepositoryProjects _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Project.testProjectAttributes _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Project.testProjectCardAttributes _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Project.testProjectCardDelete _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Project.testProjectCardMove __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Project.testProjectColumnAttributes ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("PyGithub") tests/Project.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Project1434.testDelete ____________________________ self = def testDelete(self): > project = self.g.get_project(4102095) tests/Project1434.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:481: in get_project headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Project1434.testEditWithAllParameters _____________________ self = def testEditWithAllParameters(self): > project = self.g.get_project(4101939) tests/Project1434.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:481: in get_project headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Project1434.testEditWithoutParameters _____________________ self = def testEditWithoutParameters(self): > project = self.g.get_project(4101939) tests/Project1434.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:481: in get_project headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ ProjectColumn.testCreateCard _________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ ProjectColumn.testDelete ___________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ ProjectColumn.testEdit ____________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ ProjectColumn.testGetAllCards _________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ ProjectColumn.testGetArchivedCards ______________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ ProjectColumn.testGetCards __________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ ProjectColumn.testGetNotArchivedCards _____________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ ProjectColumn.testGetProjectColumn ______________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ ProjectColumn.testMoveAfter __________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ ProjectColumn.testMoveFirst __________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ ProjectColumn.testMoveLast __________________________ self = def setUp(self): super().setUp() > self.get_project_column = self.g.get_project_column(8700460) tests/ProjectColumn.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:492: in get_project_column headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ PublicKey.testAttributes ___________________________ self = def testAttributes(self): > self.public_key = self.g.get_user().get_repo("PyGithub").get_public_key() tests/PublicKey.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ PublicKey.testAttributes_with_int_key_id ___________________ self = def testAttributes_with_int_key_id(self): > self.public_key = self.g.get_user().get_repo("PyGithub").get_public_key() tests/PublicKey.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequest.testAddAndRemoveAssignees _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest.testAddAndRemoveLabels ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ PullRequest.testAddAndRemoveLabelsWithStringArguments _____________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ PullRequest.testAttributes __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest.testAttributesIssue256 ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequest.testCreateComment _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest.testCreateIssueComment ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ PullRequest.testCreateMultilineReviewComment _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ PullRequest.testCreateMultilineReviewCommentAsSuggestion ___________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________ PullRequest.testCreateMultilineReviewCommentChoosingSide ___________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ PullRequest.testCreateReviewCommentInReplyTo _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ PullRequest.testCreateReviewCommentSubjectType ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest.testDeleteAndSetLabels ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ PullRequest.testDeleteAndSetLabelsWithStringArguments _____________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PullRequest.testDeleteBranch _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequest.testDeleteOnMerge _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PullRequest.testDisableAutomerge _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PullRequest.testEditWithAllArguments _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PullRequest.testEditWithoutArguments _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PullRequest.testEnableAutomerge ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ PullRequest.testEnableAutomergeDefaultValues _________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PullRequest.testEnableAutomergeError _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ PullRequest.testEnableAutomergeNotValidMergeMethod ______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest.testForceDeleteBranch _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PullRequest.testGetComments __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ PullRequest.testGetCommits __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ PullRequest.testGetFiles ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PullRequest.testGetIssueComment ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PullRequest.testGetIssueComments _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequest.testGetIssueEvents ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ PullRequest.testGetLabels ___________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest.testGetReviewComments _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ PullRequest.testMerge _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequest.testMergeWithCommitMessage ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequest.testRestoreBranch _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequest.testReviewRequests ________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PullRequest.testUpdateBranch _________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/PullRequest.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PullRequest1168.testGetIssue _________________________ self = def setUp(self): super().setUp() > self.notifications = self.g.get_repo("PyGithub/PyGithub").get_notifications(all=True) tests/PullRequest1168.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest1168.testGetPullRequest ______________________ self = def setUp(self): super().setUp() > self.notifications = self.g.get_repo("PyGithub/PyGithub").get_notifications(all=True) tests/PullRequest1168.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ PullRequest1169.testReviewApproveWithoutBody _________________ self = def setUp(self): super().setUp() ferada_repo = self.g.get_repo("coleslaw-org/coleslaw", lazy=True) > self.pull = ferada_repo.get_pull(173) tests/PullRequest1169.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ PullRequest1375.testCreateReviewCommentReply _________________ self = def setUp(self): super().setUp() > self.pr = self.g.get_repo("rsn491/PyGithub").get_pulls()[0] tests/PullRequest1375.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest1682.test_no_parameters ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("ReDASers/Phishing-Detection") tests/PullRequest1682.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequest1682.test_object_parameters ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("ReDASers/Phishing-Detection") tests/PullRequest1682.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequest1682.test_string_parameters ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("ReDASers/Phishing-Detection") tests/PullRequest1682.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequest1684.testDeleteRunnerId ______________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("ReDASers") tests/PullRequest1684.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequest1684.testDeleteRunnerObject ____________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("ReDASers") tests/PullRequest1684.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequest1684.testGetRunners ________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("ReDASers") tests/PullRequest1684.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequest2408.test_get_workflow_runs ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("ReDASers/Phishing-Detection") tests/PullRequest2408.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ PullRequestComment.testAttributes _______________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_pull(31).get_comment(886298) tests/PullRequestComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequestComment.testCreateReaction _____________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_pull(31).get_comment(886298) tests/PullRequestComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequestComment.testDelete _________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_pull(31).get_comment(886298) tests/PullRequestComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ PullRequestComment.testDeleteReaction _____________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_pull(31).get_comment(886298) tests/PullRequestComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ PullRequestComment.testEdit __________________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_pull(31).get_comment(886298) tests/PullRequestComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ PullRequestComment.testGetReactions ______________________ self = def setUp(self): super().setUp() > self.comment = self.g.get_user().get_repo("PyGithub").get_pull(31).get_comment(886298) tests/PullRequestComment.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequestFile.testAttributes ________________________ self = def setUp(self): super().setUp() > self.file = self.g.get_user().get_repo("PyGithub").get_pull(31).get_files()[0] tests/PullRequestFile.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PullRequestReview.testAttributes _______________________ self = def setUp(self): super().setUp() self.repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) > self.pull = self.repo.get_pull(538) tests/PullRequestReview.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ PullRequestReview.testDismiss _________________________ self = def setUp(self): super().setUp() self.repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) > self.pull = self.repo.get_pull(538) tests/PullRequestReview.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ PullRequestReview.testDoesNotModifyPullRequest ________________ self = def setUp(self): super().setUp() self.repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) > self.pull = self.repo.get_pull(538) tests/PullRequestReview.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ PullRequestReview.testEdit __________________________ self = def setUp(self): super().setUp() self.repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) > self.pull = self.repo.get_pull(538) tests/PullRequestReview.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ PullRequestReview1856.testDelete _______________________ self = def setUp(self): super().setUp() pumpkin_repo = self.g.get_repo("CS481-Team-Pumpkin/PyGithub", lazy=True) > self.pumpkin_pull = pumpkin_repo.get_pull(4) tests/PullRequestReview1856.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/Repository.py:3166: in get_pull headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/pulls/{number}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ RateLimiting.testGetRateLimit _________________________ self = def testGetRateLimit(self): > rateLimit = self.g.get_rate_limit() tests/RateLimiting.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:334: in get_rate_limit headers, data = self.__requester.requestJsonAndCheck("GET", "/rate_limit") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ RateLimiting.testRateLimiting _________________________ self = def testRateLimiting(self): > self.assertEqual(self.g.rate_limiting, (4904, 5000)) tests/RateLimiting.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:315: in rate_limiting self.get_rate_limit() github/MainClass.py:334: in get_rate_limit headers, data = self.__requester.requestJsonAndCheck("GET", "/rate_limit") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ RateLimiting.testResetTime __________________________ self = def testResetTime(self): > self.assertEqual(self.g.rate_limiting_resettime, 1684195041) tests/RateLimiting.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:324: in rate_limiting_resettime self.get_rate_limit() github/MainClass.py:334: in get_rate_limit headers, data = self.__requester.requestJsonAndCheck("GET", "/rate_limit") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ RawData.testCompletedObject __________________________ self = def testCompletedObject(self): > user = self.g.get_user("jacquev6") tests/RawData.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ RawData.testNonCompletableObject _______________________ self = def testNonCompletableObject(self): > plan = self.g.get_user().plan tests/RawData.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:306: in plan self._completeIfNotSet(self._plan) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ RawData.testNotYetCompletedObject _______________________ self = def testNotYetCompletedObject(self): > user = self.g.get_user().get_repo("PyGithub").owner tests/RawData.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Reaction.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.reactions = self.g.get_user("PyGithub").get_repo("PyGithub").get_issue(28).get_reactions() tests/Reaction.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Reaction.testDelete ______________________________ self = def setUp(self): super().setUp() > self.reactions = self.g.get_user("PyGithub").get_repo("PyGithub").get_issue(28).get_reactions() tests/Reaction.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ ReleaseAsset.testAttributes __________________________ self = def setUp(self): super().setUp() > self.release = self.g.get_user().get_repo("PyGithub").get_releases()[0] tests/ReleaseAsset.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ ReleaseAsset.testDelete ____________________________ self = def setUp(self): super().setUp() > self.release = self.g.get_user().get_repo("PyGithub").get_releases()[0] tests/ReleaseAsset.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ ReleaseAsset.testUpdate ____________________________ self = def setUp(self): super().setUp() > self.release = self.g.get_user().get_repo("PyGithub").get_releases()[0] tests/ReleaseAsset.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Repository.testAddToCollaboratorsCustomRole __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testAssignees ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testAttributes ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testBadSubscribePubSubHubbub ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testCodeScanAlerts _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testCollaboratorPermission _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ Repository.testCollaboratorPermissionNoPushAccess _______________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCollaborators _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Repository.testCompare ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testCompareCommitPagination ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testCreateAutolink _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testCreateDeployment ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testCreateFile ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testCreateFork ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCreateForkOrg _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCreateGitBlob _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testCreateGitCommit ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ Repository.testCreateGitCommitWithAllArguments ________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Repository.testCreateGitCommitWithParents ___________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCreateGitRef __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testCreateGitRelease ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ Repository.testCreateGitReleaseGenerateReleaseNotes ______________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Repository.testCreateGitReleaseWithAllArguments ________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCreateGitTag __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Repository.testCreateGitTagWithAllArguments __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCreateGitTree _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testCreateGitTreeWithBaseTree ___________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testCreateGitTreeWithNullSha ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testCreateGitTreeWithSha ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Repository.testCreateHookWithAllParameters __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________ Repository.testCreateHookWithMinimalParameters ________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testCreateIssue __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Repository.testCreateIssueWithAllArguments __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ Repository.testCreateIssueWithAllArgumentsStringLabel _____________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testCreateKey ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testCreateLabel __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testCreateMilestone ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ Repository.testCreateMilestoneWithMinimalArguments ______________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testCreateProject _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testCreatePull ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testCreatePullFromIssue ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testCreateRepoActionsSecret ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Repository.testCreateRepoDependabotSecret ___________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testCreateRepositoryDispatch ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testCreateSourceImport _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Repository.testDelete _____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testDeleteFile ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testEditWithAllArguments ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testEditWithDefaultBranch _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testEditWithoutArguments ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetArchiveLink _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetAutolinks __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetBranch ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testGetComments __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testGetCommits ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetCommitsWithArguments ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testGetCommitsWithAuthor ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testGetCommitsWithSinceUntil ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testGetContents __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetContentsDir _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetContentsDirWithSlash ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testGetContentsWithRef _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetContributors ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testGetCustomProperties ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetDeployments _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetDiscussion _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetDiscussions _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testGetDiscussionsByAnswered ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testGetDiscussionsByCategory ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetDiscussionsByStates _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetDownloads __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetEvents ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetForks ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetGitRef ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Repository.testGetGitRefWithIssue102Reverted _________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testGetGitRefs ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetGitTreeWithRecursive ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testGetHookDeliveries _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetHookDelivery ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetHooks ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetIssues ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testGetIssuesComments _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetIssuesEvents ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetIssuesWithArguments _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetIssuesWithWildcards _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Repository.testGetKeys ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetLabel ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetLabels ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetLanguages __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testGetLicense ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetMatchingRefs ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetMilestones _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Repository.testGetMilestonesWithArguments ___________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testGetNetworkEvents ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testGetPendingInvitations _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetPulls ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testGetPullsComments ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testGetPullsWithArguments _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ Repository.testGetRepositoryWith301Redirect __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetSourceImport ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetStargazers _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetStargazersWithDates _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetSubscribers _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetTeams ____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Repository.testGetTopics ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testGetWatchers __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetWorkflowId _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testGetWorkflowRuns ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testGetWorkflowRunsCreated _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testGetWorkflows __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testLegacySearchIssues _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testMarkNotificationsAsRead ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testMergeWithConflict _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testMergeWithMessage ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testMergeWithNothingToDo ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testMergeWithoutMessage ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Repository.testRemoveAutolink _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Repository.testRemoveInvitation ________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testRenameBranchObject _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testRenameBranchString _______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testReplaceTopics _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testRepoGetSecretAssertion _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testRepoSecrets __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testRepoVariable __________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Repository.testRepoVariables _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testStatisticsCodeFrequency ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ Repository.testStatisticsCommitActivity ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testStatisticsContributors _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testStatisticsParticipation ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Repository.testStatisticsPunchCard ______________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Repository.testSubscribePubSubHubbub _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testUnsubscribePubSubHubbub ____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Repository.testUpdateCustomProperties _____________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ Repository.testUpdateFile ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Repository.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________ LazyRepository.testChangeAutomateFixWhenNoVulnerabilityAlert _________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ LazyRepository.testDisableAutomatedSecurityFixes _______________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ LazyRepository.testDisableVulnerabilityAlert _________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ LazyRepository.testEnableAutomatedSecurityFixes ________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ LazyRepository.testEnableVulnerabilityAlert __________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ LazyRepository.testGetIssues _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ LazyRepository.testGetVulnerabilityAlert ___________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________ LazyRepository.testGetVulnerabilityAlertWhenTurnedOff _____________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ LazyRepository.testOwner ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ LazyRepository.testRequester _________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repository_name = f"{self.user.login}/PyGithub" tests/Repository.py:2072: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ RepositoryAdvisory.testAddVulnerability ____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ RepositoryAdvisory.testAttributes _______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ RepositoryAdvisory.testCreateRepositoryAdvisory ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ RepositoryAdvisory.testGetAdvisories _____________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ RepositoryAdvisory.testOfferCredit ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ RepositoryAdvisory.testOfferCredits ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ RepositoryAdvisory.testRemoveCredit ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ RepositoryAdvisory.testRepositoryWithNoAdvisories _______________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ RepositoryAdvisory.testUpdateRepositoryAdvisory ________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______ RepositoryAdvisory.testUpdateSingleFieldDoesNotRemoveOtherFields _______ self = def setUp(self): super().setUp() > self.repo = self.g.get_user().get_repo("security-research") tests/RepositoryAdvisory.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________ RepositoryDiscussion.testAddAndDeleteComment _________________ self = def setUp(self): super().setUp() > self.discussion = self.g.get_repository_discussion("D_kwDOADYVqs4AaHoG", self.discussion_schema) tests/RepositoryDiscussion.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:473: in get_repository_discussion return self.__requester.graphql_node_class( github/Requester.py:695: in graphql_node_class headers, data = self.graphql_node(node_id, graphql_schema, node_type) github/Requester.py:676: in graphql_node headers, data = self.graphql_query(query, {"id": node_id}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ RepositoryDiscussion.testAttributes ______________________ self = def setUp(self): super().setUp() > self.discussion = self.g.get_repository_discussion("D_kwDOADYVqs4AaHoG", self.discussion_schema) tests/RepositoryDiscussion.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:473: in get_repository_discussion return self.__requester.graphql_node_class( github/Requester.py:695: in graphql_node_class headers, data = self.graphql_node(node_id, graphql_schema, node_type) github/Requester.py:676: in graphql_node headers, data = self.graphql_query(query, {"id": node_id}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ RepositoryDiscussion.testGetComments _____________________ self = def setUp(self): super().setUp() > self.discussion = self.g.get_repository_discussion("D_kwDOADYVqs4AaHoG", self.discussion_schema) tests/RepositoryDiscussion.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:473: in get_repository_discussion return self.__requester.graphql_node_class( github/Requester.py:695: in graphql_node_class headers, data = self.graphql_node(node_id, graphql_schema, node_type) github/Requester.py:676: in graphql_node headers, data = self.graphql_query(query, {"id": node_id}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________ RepositoryDiscussion.testGetCommentsWithoutNodeId _______________ self = def setUp(self): super().setUp() > self.discussion = self.g.get_repository_discussion("D_kwDOADYVqs4AaHoG", self.discussion_schema) tests/RepositoryDiscussion.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:473: in get_repository_discussion return self.__requester.graphql_node_class( github/Requester.py:695: in graphql_node_class headers, data = self.graphql_node(node_id, graphql_schema, node_type) github/Requester.py:676: in graphql_node headers, data = self.graphql_query(query, {"id": node_id}) github/Requester.py:633: in graphql_query response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /usr/lib/python3/site-packages/requests/sessions.py:637: in post return self.request("POST", url, data=data, json=json, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) /usr/lib/python3/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( /usr/lib/python3/site-packages/urllib3/connectionpool.py:787: in urlopen response = self._make_request( /usr/lib/python3/site-packages/urllib3/connectionpool.py:534: in _make_request response = conn.getresponse() /usr/lib/python3/site-packages/urllib3/connection.py:513: in getresponse _shutdown = getattr(self.sock, "shutdown", None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = httpretty.core.socket("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ RepositoryKey.testAttributes _________________________ self = def setUp(self): super().setUp() # When recording test, be sure to create a deploy key for yourself on # Github and update it here. > repo = self.g.get_user("lra").get_repo("mackup") tests/RepositoryKey.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ RepositoryKey.testDelete ___________________________ self = def setUp(self): super().setUp() # When recording test, be sure to create a deploy key for yourself on # Github and update it here. > repo = self.g.get_user("lra").get_repo("mackup") tests/RepositoryKey.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ RepositoryKey.testYetUnusedKey ________________________ self = def setUp(self): super().setUp() # When recording test, be sure to create a deploy key for yourself on # Github and update it here. > repo = self.g.get_user("lra").get_repo("mackup") tests/RepositoryKey.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Requester.testBaseUrlHostRedirection _____________________ self = def testBaseUrlHostRedirection(self): gh = github.Github(base_url="https://www.github.com") with self.assertRaises(RuntimeError) as exc: > gh.get_repo("PyGithub/PyGithub") tests/Requester.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Requester.testBaseUrlPortRedirection _____________________ self = def testBaseUrlPortRedirection(self): # replay data forged gh = github.Github(base_url="https://api.github.com") with self.assertRaises(RuntimeError) as exc: > gh.get_repo("PyGithub/PyGithub") tests/Requester.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Requester.testBaseUrlPrefixRedirection ____________________ self = def testBaseUrlPrefixRedirection(self): # replay data forged gh = github.Github(base_url="https://api.github.com/api/v3") > self.assertEqual(gh.get_repo("PyGithub/PyGithub").name, "PyGithub") tests/Requester.py:251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Requester.testBaseUrlSchemeRedirection ____________________ self = def testBaseUrlSchemeRedirection(self): gh = github.Github(base_url="http://api.github.com") with self.assertRaises(RuntimeError) as exc: > gh.get_repo("PyGithub/PyGithub") tests/Requester.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Requester.testLoggingRedirection _______________________ self = def testLoggingRedirection(self): > self.assertEqual(self.g.get_repo("EnricoMi/test").name, "test-renamed") tests/Requester.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ RequesterUnThrottled.testShouldNotDeferRequests ________________ self = def testShouldNotDeferRequests(self): with self.mock_sleep() as sleep_mock: # same test setup as in RequesterThrottled.testShouldDeferRequests > repository = self.g.get_repo(REPO_NAME) tests/Requester.py:419: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ RequesterThrottled.testShouldDeferRequests __________________ self = def testShouldDeferRequests(self): with self.mock_sleep() as sleep_mock: # same test setup as in RequesterUnThrottled.testShouldNotDeferRequests > repository = self.g.get_repo(REPO_NAME) tests/Requester.py:433: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________ RequesterThrottled.testShouldDeferWrites ___________________ self = def testShouldDeferWrites(self): with self.mock_sleep() as sleep_mock: # same test setup as in AuthenticatedUser.testEmail user = self.g.get_user() > emails = user.get_emails() tests/Requester.py:443: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:677: in get_emails headers, data = self._requester.requestJsonAndCheck("GET", "/user/emails") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ RequiredPullRequestReviews.testAttributes ___________________ self = def setUp(self): super().setUp() self.required_pull_request_reviews = ( > self.g.get_user().get_repo("PyGithub").get_branch("integrations").get_required_pull_request_reviews() ) tests/RequiredPullRequestReviews.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________ RequiredPullRequestReviews.testOrganizationOwnedTeam _____________ self = def setUp(self): super().setUp() self.required_pull_request_reviews = ( > self.g.get_user().get_repo("PyGithub").get_branch("integrations").get_required_pull_request_reviews() ) tests/RequiredPullRequestReviews.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ RequiredStatusChecks.testAttributes ______________________ self = def setUp(self): super().setUp() self.required_status_checks = ( > self.g.get_user().get_repo("PyGithub").get_branch("integrations").get_required_status_checks() ) tests/RequiredStatusChecks.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Retry.testRaisesRetryErrorAfterMaxRetries ___________________ self = def testRaisesRetryErrorAfterMaxRetries(self): with self.assertRaises(requests.exceptions.RetryError): > self.g.get_repo("PyGithub/PyGithub") tests/Retry.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Retry.testReturnsRepoAfter1Retry _______________________ self = def testReturnsRepoAfter1Retry(self): > repository = self.g.get_repo(REPO_NAME) tests/Retry.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Retry.testReturnsRepoAfter3Retries ______________________ self = def testReturnsRepoAfter3Retries(self): > repository = self.g.get_repo(REPO_NAME) tests/Retry.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ Retry.testReturnsRepoAfterSettingRetryHttp __________________ self = def testReturnsRepoAfterSettingRetryHttp(self): g = github.Github( auth=self.login, base_url="http://my.enterprise.com", retry=0, ) # http here > repository = g.get_repo(REPO_NAME) tests/Retry.py:88: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:265: in getresponse r = verb( /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("my.enterprise.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. /usr/lib/python3/site-packages/httpretty/core.py:894: UnmockedError _________________ Retry.testShouldNotRetryWhenStatusNotOnList __________________ self = def testShouldNotRetryWhenStatusNotOnList(self): with self.assertRaises(github.GithubException): > self.g.get_repo(REPO_NAME) tests/Retry.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Search.testGetPageOnSearchUsers ________________________ self = def testGetPageOnSearchUsers(self): users = self.g.search_users("", location="Berlin") self.assertEqual( > [u.login for u in users.get_page(7)], [ "ursachec", "bitboxer", "fs111", "michenriksen", "witsch", "booo", "mortice", "r0man", "MikeBild", "mhagger", "bkw", "fwbrasil", "mschneider", "lydiapintscher", "asksven", "iamtimm", "sneak", "kr1sp1n", "Feh", "GordonLesti", "annismckenzie", "eskimoblood", "tsujigiri", "riethmayer", "lauritzthamsen", "scotchi", "peritor", "toto", "hwaxxer", "lukaszklis", ], ) tests/Search.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:414: in get_page headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Search.testPaginateSearchCommits _______________________ self = def testPaginateSearchCommits(self): commits = self.g.search_commits(query="hash:5b0224e868cc9242c9450ef02efbe3097abd7ba2") > self.assertEqual(commits.totalCount, 3) tests/Search.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:226: in totalCount headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Search.testPaginateSearchTopics ________________________ self = def testPaginateSearchTopics(self): repos = self.g.search_topics("python", repositories=">950") > self.assertEqual(repos.totalCount, 6) tests/Search.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:226: in totalCount headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Search.testPaginateSearchUsers ________________________ self = def testPaginateSearchUsers(self): users = self.g.search_users("", location="Berlin") > self.assertListKeyBegin( users, lambda u: u.login, [ "cloudhead", "felixge", "sferik", "rkh", "jezdez", "janl", "marijnh", "nikic", "igorw", "froschi", "svenfuchs", "omz", "chad", "bergie", "roidrage", "pcalcado", "durran", "hukl", "mttkay", "aFarkas", "ole", "hagenburger", "jberkel", "naderman", "joshk", "pudo", "robb", "josephwilk", "hanshuebner", "txus", "paulasmuth", "splitbrain", "langalex", "bendiken", "stefanw", ], ) tests/Search.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Search.testSearchCode _____________________________ self = def testSearchCode(self): files = self.g.search_code("toto", sort="indexed", order="asc", user="jacquev6") > self.assertListKeyEqual( files, lambda f: f.name, [ "Commit.setUp.txt", "PullRequest.testGetFiles.txt", "NamedUser.testGetEvents.txt", "PullRequest.testCreateComment.txt", "PullRequestFile.setUp.txt", "Repository.testGetIssuesWithWildcards.txt", "Repository.testGetIssuesWithArguments.txt", "test_ebnf.cpp", "test_abnf.cpp", "PullRequestFile.py", "SystemCalls.py", "tests.py", "LexerTestCase.py", "ParserTestCase.py", ], ) tests/Search.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:386: in assertListKeyEqual realKeys = [key(element) for element in elements] github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Search.testSearchCommits ___________________________ self = def testSearchCommits(self): commits = self.g.search_commits( query="hash:1265747e992ba7d34a469b6b2f527809f8bf7067", sort="author-date", order="asc", merge="false", ) > self.assertEqual(commits.totalCount, 2) tests/Search.py:210: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:226: in totalCount headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Search.testSearchHighlightingCode _______________________ self = def testSearchHighlightingCode(self): files = self.g.search_code("toto", sort="indexed", order="asc", user="jacquev6", highlight=True) > self.assertTrue(files[0].text_matches) tests/Search.py:254: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Search.testSearchIssues ____________________________ self = def testSearchIssues(self): issues = self.g.search_issues("compile", sort="comments", order="desc", language="C++") > self.assertListKeyBegin( issues, lambda i: i.id, [ 12068673, 23250111, 14371957, 9423897, 24277400, 2408877, 11338741, 13980502, 27697165, 23102422, ], ) tests/Search.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Search.testSearchRepos ____________________________ self = def testSearchRepos(self): repos = self.g.search_repositories("github", sort="stars", order="desc", language="Python") > self.assertListKeyBegin( repos, lambda r: r.full_name, [ "kennethreitz/legit", "RuudBurger/CouchPotatoV1", "gelstudios/gitfiti", "gpjt/webgl-lessons", "jacquev6/PyGithub", "aaasen/github_globe", "hmason/gitmarks", "dnerdy/factory_boy", "binaryage/drydrop", "bgreenlee/sublime-github", "karan/HackerNewsAPI", "mfenniak/pyPdf", "skazhy/github-decorator", "llvmpy/llvmpy", "lexrupy/gmate", "ask/python-github2", "audreyr/cookiecutter-pypackage", "tabo/django-treebeard", "dbr/tvdb_api", "jchris/couchapp", "joeyespo/grip", "nigelsmall/py2neo", "ask/chishop", "sigmavirus24/github3.py", "jsmits/github-cli", "lincolnloop/django-layout", "amccloud/django-project-skel", "Stiivi/brewery", "webpy/webpy.github.com", "dustin/py-github", "logsol/Github-Auto-Deploy", "cloudkick/libcloud", "berkerpeksag/github-badge", "bitprophet/ssh", "azavea/OpenTreeMap", ], ) tests/Search.py:134: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Search.testSearchReposWithNoResults ______________________ self = def testSearchReposWithNoResults(self): repos = self.g.search_repositories("doesnotexist") > self.assertEqual(repos.totalCount, 0) tests/Search.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:226: in totalCount headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Search.testSearchTopics ____________________________ self = def testSearchTopics(self): topics = self.g.search_topics("python", repositories=">950") > self.assertListKeyBegin( topics, lambda r: r.name, ["python", "django", "flask", "ruby", "scikit-learn", "wagtail"], ) tests/Search.py:214: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/Framework.py:390: in assertListKeyBegin realKeys = [key(element) for element in elements[: len(expectedKeys)]] github/PaginatedList.py:110: in __iter__ yield self.__list[index] github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Search.testSearchUsers ____________________________ self = def testSearchUsers(self): users = self.g.search_users("vincent", sort="followers", order="desc") > self.assertEqual(users.totalCount, 2781) tests/Search.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:226: in totalCount headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Search.testUrlquotingOfQualifiers _______________________ self = def testUrlquotingOfQualifiers(self): # Example taken from #236 issues = self.g.search_issues("repo:saltstack/salt-api type:Issues", updated=">2014-03-04T18:28:11Z") > self.assertEqual(issues[0].id, 29138794) tests/Search.py:259: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ Search.testUrlquotingOfQuery _________________________ self = def testUrlquotingOfQuery(self): # Example taken from #236 issues = self.g.search_issues("repo:saltstack/salt-api type:Issues updated:>2014-03-04T18:28:11Z") > self.assertEqual(issues[0].id, 29138794) tests/Search.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:76: in __getitem__ self.__fetchToIndex(index) github/PaginatedList.py:92: in __fetchToIndex self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________ SecurityAndAnalysis.testRepoSecurityAndAnalysisAttributes ___________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/SecurityAndAnalysis.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________ SecurityAndAnalysis.testRepoSecurityAndAnalysisRepresentation _________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("transmission-web-control/transmission-web-control") tests/SecurityAndAnalysis.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ SelfHostedActionsRunner.testAttributes ____________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("ReDASers") tests/SelfHostedActionsRunner.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _________________________ SourceImport.testAttributes __________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("brix4dayz") tests/SourceImport.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ SourceImport.testUpdate ____________________________ self = def setUp(self): super().setUp() > self.user = self.g.get_user("brix4dayz") tests/SourceImport.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:379: in get_user headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ Tag.testAttributes ______________________________ self = def setUp(self): super().setUp() > self.tag = self.g.get_user().get_repo("PyGithub").get_tags()[0] tests/Tag.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Team.testAttributes ______________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ Team.testDelete ________________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Team.testDiscussions _____________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Team.testEditWithAllArguments _________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Team.testEditWithoutArguments _________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ Team.testGetTeams _______________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________________ Team.testMembers _______________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Team.testRepoPermission ____________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________________ Team.testRepos ________________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Team.testTeamMembership ____________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ________________________ Team.testUpdateTeamRepository _________________________ self = def setUp(self): super().setUp() > self.org = self.g.get_organization("BeaverSoftware") tests/Team.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:408: in get_organization headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Topic.testAllFields ______________________________ self = def setUp(self): super().setUp() > self.topics = list(self.g.search_topics("python")) tests/Topic.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Topic.testNamesFromSearchResults _______________________ self = def setUp(self): super().setUp() > self.topics = list(self.g.search_topics("python")) tests/Topic.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/PaginatedList.py:84: in __iter__ newElements = self._grow() github/PaginatedList.py:95: in _grow newElements = self._fetchNextPage() github/PaginatedList.py:320: in _fetchNextPage headers, data = self.__requester.requestJsonAndCheck( github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ Traffic.testGetClones _____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Traffic.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Traffic.testGetPaths _____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Traffic.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Traffic.testGetReferrers ___________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Traffic.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________________ Traffic.testGetViews _____________________________ self = def setUp(self): super().setUp() self.user = self.g.get_user() > self.repo = self.user.get_repo("PyGithub") tests/Traffic.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:853: in get_repo headers, data = self._requester.requestJsonAndCheck("GET", f"/repos/{self.login}/{name}") github/AuthenticatedUser.py:281: in login self._completeIfNotSet(self._login) github/GithubObject.py:499: in _completeIfNotSet self._completeIfNeeded() github/GithubObject.py:503: in _completeIfNeeded self.__complete() github/GithubObject.py:508: in __complete headers, data = self._requester.requestJsonAndCheck("GET", self._url.value) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ UserKey.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.key = self.g.get_user().get_key(2626650) tests/UserKey.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:781: in get_key headers, data = self._requester.requestJsonAndCheck("GET", f"/user/keys/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________________ UserKey.testDelete ______________________________ self = def setUp(self): super().setUp() > self.key = self.g.get_user().get_key(2626650) tests/UserKey.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/AuthenticatedUser.py:781: in get_key headers, data = self._requester.requestJsonAndCheck("GET", f"/user/keys/{id}") github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ Workflow.testAttributes ____________________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________ Workflow.testCreateDispatchForNonTriggerEnabled ________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Workflow.testCreateDispatchWithBranch _____________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________ Workflow.testCreateDispatchWithString _____________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ Workflow.testCreateDispatchWithTag ______________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Workflow.testGetRunsWithCreated ________________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Workflow.testGetRunsWithHeadSha ________________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _____________________ Workflow.testGetRunsWithNoArguments ______________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Workflow.testGetRunsWithObjects ________________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError _______________________ Workflow.testGetRunsWithStrings ________________________ self = def setUp(self): super().setUp() > self.workflow = self.g.get_repo("PyGithub/PyGithub").get_workflow("check.yml") tests/Workflow.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ WorkflowJob.testAttributes __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowJob.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________________ WorkflowRun.testAttributes __________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ WorkflowRun.test_cancel ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ WorkflowRun.test_delete ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ WorkflowRun.test_jobs _____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ____________________________ WorkflowRun.test_rerun ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ______________________ WorkflowRun.test_rerun_failed_jobs ______________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError __________________ WorkflowRun.test_rerun_with_successful_run __________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ___________________________ WorkflowRun.test_timing ____________________________ self = def setUp(self): super().setUp() > self.repo = self.g.get_repo("PyGithub/PyGithub") tests/WorkflowRun.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ github/MainClass.py:445: in get_repo headers, data = self.__requester.requestJsonAndCheck("GET", url) github/Requester.py:586: in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) github/Requester.py:856: in requestJson return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode) github/Requester.py:977: in __requestEncode status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input) github/Requester.py:1011: in __requestRaw response = cnx.getresponse() tests/Framework.py:254: in getresponse response = self.__cnx.getresponse() github/Requester.py:202: in getresponse r = verb( /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("api.github.com:443"), name = 'shutdown' def __getattr__(self, name): if name in ('getsockopt', 'selected_alpn_protocol') and not self.truesock: self.truesock = self.create_socket() elif httpretty.allow_net_connect and not self.truesock: # can't call self.connect_truesock() here because we # don't know if user wants to execute server of client # calls (or can they?) self.truesock = self.create_socket() elif not self.truesock: # Special case for # `hasattr(sock, "version")` call added in urllib3>=1.26. if name == 'version': raise AttributeError( "HTTPretty synthesized this error to fix urllib3 compatibility " "(see issue https://github.com/gabrielfalcao/HTTPretty/issues/409). " "Please open an issue if this error causes further unexpected issues." ) > raise UnmockedError('Failed to socket.{} because because a real socket does not exist'.format(name)) E httpretty.errors.UnmockedError: Failed to socket.shutdown because because a real socket does not exist E  E Tip: You could 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/httpretty/core.py:894: UnmockedError ---------- coverage: platform linux, python 3.12.8-final-0 ----------- Coverage XML written to file coverage.xml =========================== short test summary info ============================ FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testEnterpriseGetAccessToken - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testGetAccessToken - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testGetAccessTokenBadCode - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testGetAccessTokenUnknownError - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testGetAccessTokenWithExpiry - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testRefreshAccessToken - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testRefreshAccessTokenBadCode - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ApplicationOAuth.py::ApplicationOAuth::testRefreshAccessTokenUnknownError - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Artifact.py::Artifact::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Artifact.py::Artifact::testGetArtifactsFromRepo - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Artifact.py::Artifact::testGetArtifactsFromRepoWithName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Artifact.py::Artifact::testGetArtifactsFromWorkflow - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Artifact.py::Artifact::testGetNonexistentArtifact - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Artifact.py::Artifact::testGetSingleArtifactFromRepo - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testAcceptInvitation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateAuthorizationWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateAuthorizationWithClientIdAndSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateAuthorizationWithoutArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateFork - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateGist - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateGistWithoutDescription - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateKey - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateMigration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateProject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateRepoFromTemplate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateRepoFromTemplateWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateRepository - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateRepositoryWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testCreateRepositoryWithAutoInit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testEditWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testEditWithoutArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testEmails - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testFollowing - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetAuthorizations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetGists - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetInvitations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetIssuesWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetKeys - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetMemberships - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetMigrations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetNotification - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetNotifications - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetNotificationsWithOtherArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetOrganizationEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetOrgs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetReposWithArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetStarredGists - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetTeams - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetUserIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testGetUserIssuesWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testInstallations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testMarkNotificationsAsRead - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testStarring - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testSubscriptions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/AuthenticatedUser.py::AuthenticatedUser::testWatching - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAppAuthAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAppAuthTokenAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAppAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAppInstallationAuthAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAppUserAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAuthorizationHeaderWithLogin - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testAuthorizationHeaderWithToken - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testBasicAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testJWTAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testLoginAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testNoAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testOAuthAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testTokenAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authentication.py::Authentication::testUserAgent - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authorization.py::Authorization::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authorization.py::Authorization::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Authorization.py::Authorization::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Autolink.py::Autolink::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadAttributeInClassAttribute - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadAttributeTransformation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadSimpleAttribute - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadSimpleAttributeInList - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadTransformedAttribute - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadTransformedAttributeInDict - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testBadTransformedAttributeInList - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BadAttributes.py::BadAttributes::testIssue195 - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testAddRequiredSignatures - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testAddTeamPushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testAddUserPushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testAdminEnforcement - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testAllowDeletions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditProtection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditProtectionDismissalUsersWithUserOwnedBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditProtectionPushRestrictionsAndDismissalUser - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditProtectionPushRestrictionsWithUserOwnedBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditRequiredPullRequestReviews - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditRequiredPullRequestReviewsWithTooLargeApprovingReviewCount - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditRequiredPullRequestReviewsWithUserBranchAndDismissalUsers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testEditRequiredStatusChecks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testGetRequiredSignatures - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemoveProtection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemovePushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemoveRequiredPullRequestReviews - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemoveRequiredSignatures - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemoveRequiredStatusChecks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemoveTeamPushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testRemoveUserPushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testReplaceTeamPushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Branch.py::Branch::testReplaceUserPushRestrictions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/BranchProtection.py::BranchProtection::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testCheckRunAnnotationAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testCheckRunOutputAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testCreateCheckRunCompleted - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testCreateCheckRunInProgress - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testGetCheckRunsForRef - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testGetCheckRunsForRefFilterByCheckName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testGetCheckRunsForRefFilterByFilter - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testGetCheckRunsForRefFilterByStatus - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testListCheckRunAnnotations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testUpdateCheckRunAll - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testUpdateCheckRunFailure - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckRun.py::CheckRun::testUpdateCheckRunSuccess - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testCheckSuiteRerequest - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testCreateCheckSuite - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckRuns - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckRunsFilterByCheckName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckRunsFilterByFilter - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckRunsFilterByStatus - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckSuitesForRef - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckSuitesForRefFilterByAppId - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testGetCheckSuitesForRefFilterByCheckName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CheckSuite.py::CheckSuite::testUpdateCheckSuitesPreferences - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testCreateComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testCreateCommentOnFileLine - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testCreateCommentOnFilePosition - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testCreateStatusWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testCreateStatusWithoutOptionalParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testGetComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Commit.py::Commit::testGetPulls - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitCombinedStatus.py::CommitCombinedStatus::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitComment.py::CommitComment::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitComment.py::CommitComment::testCreateReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitComment.py::CommitComment::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitComment.py::CommitComment::testDeleteReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitComment.py::CommitComment::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitComment.py::CommitComment::testGetReactions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/CommitStatus.py::CommitStatus::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ConditionalRequestUpdate.py::ConditionalRequestUpdate::testDidNotUpdate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ConditionalRequestUpdate.py::ConditionalRequestUpdate::testDidUpdate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ConditionalRequestUpdate.py::ConditionalRequestUpdate::testUpdateObjectWithoutEtag - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpConnection-http-{"body":"BODY TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY TEXT"}\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpConnection-http-{"body":"BODY\xa0TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY\xa0TEXT"}\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpConnection-http-BODY TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY TEXT\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpConnection-http-BODY\xa0TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY\xa0TEXT\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpsConnection-https-{"body":"BODY TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY TEXT"}\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpsConnection-https-{"body":"BODY\xa0TEXT"}-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\n{"body":"BODY\xa0TEXT"}\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpsConnection-https-BODY TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY TEXT\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Connection.py::testRecordAndReplay[ReplayingHttpsConnection-https-BODY\xa0TEXT-\nGET\napi.github.com\nNone\n/user\n{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}\nNone\n200\n[]\nBODY\xa0TEXT\n\n] - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ContentFile.py::ContentFile::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testGetAlertsWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testMultipleAlerts - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testRepr - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testUpdateAlertDismissed - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testUpdateAlertDismissedWithoutReason - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DependabotAlert.py::DependabotAlert::testUpdateAlertOpen - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Deployment.py::Deployment::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DeploymentStatus.py::DeploymentStatus::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DeploymentStatus.py::DeploymentStatus::testCreate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/DeploymentStatus.py::DeploymentStatus::testGetStatuses - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Download.py::Download::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Download.py::Download::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Enterprise.py::Enterprise::testHttp - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Enterprise.py::Enterprise::testHttps - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Enterprise.py::Enterprise::testLongUrl - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Enterprise.py::Enterprise::testSpecificPort - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/EnterpriseAdmin.py::EnterpriseAdmin::testGetConsumedLicenses - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/EnterpriseAdmin.py::EnterpriseAdmin::testGetEnterpriseUsers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testCreateEnvironment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testDeleteEnvironment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testEnvironmentSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testEnvironmentSecrets - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testEnvironmentVariable - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testEnvironmentVariables - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testGetEnvironments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testProtectionRules - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testReviewers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Environment.py::Environment::testUpdateEnvironment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Equality.py::Equality::testBranchEquality - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Equality.py::Equality::testUserDifference - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Equality.py::Equality::testUserEquality - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Event.py::Event::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::Exceptions::testBadAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::Exceptions::testInvalidInput - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::Exceptions::testJSONParseError - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::Exceptions::testNonJsonDataReturnedByGithub - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::Exceptions::testUnknownObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::Exceptions::testUnknownUser - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::SpecificExceptions::test2FARequired - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::SpecificExceptions::testAuthenticatedRateLimitExceeded - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::SpecificExceptions::testBadCredentials - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::SpecificExceptions::testBadUserAgent - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::SpecificExceptions::testRateLimitExceeded - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Exceptions.py::SpecificExceptions::testUnknownObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ExposeAllAttributes.py::ExposeAllAttributes::testAllClasses - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testCreateComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testDeleteFile - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testEditWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testEditWithoutParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testFork - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testGetComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testRenameFile - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Gist.py::Gist::testStarring - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GistComment.py::GistComment::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GistComment.py::GistComment::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GistComment.py::GistComment::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitBlob.py::GitBlob::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitCommit.py::GitCommit::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitMembership.py::GitMembership::testGetMembership - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRef.py::GitRef::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRef.py::GitRef::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRef.py::GitRef::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRef.py::GitRef::testEditWithForce - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testCreateGitTagAndRelease - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testGetAssets - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testGetLatestRelease - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testGetRelease - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testUpdate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testUploadAsset - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testUploadAssetFileLike - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testUploadAssetFromMemory - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitRelease.py::GitRelease::testUploadAssetWithName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitTag.py::GitTag::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GitTree.py::GitTree::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubApp.py::GithubApp::testGetAuthenticatedApp - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubApp.py::GithubApp::testGetPublicApp - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testAppAuth - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testDeprecatedAppAuth - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetAccessToken - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetAccessTokenForNoInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetAccessTokenWithExpiredJWT - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetAccessTokenWithInvalidPermissions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetApp - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetAppInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetGithubForInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetInstallationNotFound - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetInstallationWithExpiredJWT - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetInstallations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetOrgInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetRepoInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GithubIntegration.py::GithubIntegration::testGetUserInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetEmojis - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGists - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGistsWithSince - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGitignoreTemplate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGitignoreTemplates - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGlobalAdvisories - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGlobalAdvisoriesByCVE - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGlobalAdvisoriesByGHSA - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetGlobalAdvisoriesManyFilters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetHook - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetHookDeliveries - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetHookDelivery - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetHooks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetLicense - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetLicenses - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetOrganizations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetOrganizationsSince - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetRepoFromFullName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetRepoFromId - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetReposSince - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetUserById - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetUsers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Github_.py::Github::testGetUsersSince - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GlobalAdvisory.py::GlobalAdvisory::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GlobalAdvisory.py::GlobalAdvisory::testNewlyReleased - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testDefaultUrl - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testMutation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testMutationClass - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testNode - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testNodeClass - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testOtherPort - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testOtherUrl - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testPaginationAndRestIntegration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testQuery - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testQueryGraphQlClass - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/GraphQl.py::GraphQl::testQueryRestClass - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Hook.py::Hook::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Hook.py::Hook::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Hook.py::Hook::testEditWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Hook.py::Hook::testEditWithMinimalParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Hook.py::Hook::testPing - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Hook.py::Hook::testTest - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Installation.py::Installation::testGetGithubForInstallation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Installation.py::Installation::testGetRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Installation.py::Installation::testRequester - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testAddAndRemoveAssignees - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testAddAndRemoveLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testAddAndRemoveLabelsWithStringArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testCreateComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testCreateReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testDeleteAndSetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testDeleteAndSetLabelsWithStringArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testDeleteReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testEditResetAssignee - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testEditResetMilestone - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testEditWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testEditWithStateReasonNotPlanned - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testEditWithStateReasonReopened - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testEditWithoutParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testGetComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testGetCommentsSince - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testGetEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testGetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testGetReactions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testGetTimeline - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testLock - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue.py::Issue::testUnlock - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue131.py::Issue131::testGetPullWithOrgHeadUser - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue131.py::Issue131::testGetPullsWithOrgHeadUser - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue133.py::Issue133::testGetPageWithoutInitialArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue134.py::Issue134::testGetAuthorizationsFailsWhenAutenticatedThroughOAuth - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue134.py::Issue134::testGetAuthorizationsSucceedsWhenAutenticatedThroughLoginPassword - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue134.py::Issue134::testGetOAuthScopesFromHeader - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue139.py::Issue139::testCompletion - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue140.py::Issue140::testGetDirContentsThenLazyCompletionOfFile - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue140.py::Issue140::testGetDirContentsWithRef - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue140.py::Issue140::testGetFileContents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue142.py::Issue142::testDecodeJson - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue174.py::Issue174::testGetDirContentsWhithHttpRedirect - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue2030.py::Organization::testIssue2030CreateProject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue214.py::Issue214::testAssignees - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue214.py::Issue214::testCollaborators - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue214.py::Issue214::testCreateIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue214.py::Issue214::testEditIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue214.py::Issue214::testGetIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue216.py::Issue216::testIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue278.py::Issue278::testIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue33.py::Issue33::testClosedIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue33.py::Issue33::testOpenIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue494.py::Issue494::testRepr - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testAddLabelToIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testCreateIssueWithLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testCreateLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testGetIssuesWithLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testGetLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testGetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testIssueGetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testIssueLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testRemoveLabelFromIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue50.py::Issue50::testSetIssueLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue54.py::Issue54::testConversion - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue572.py::Issue572::testIssueAsPullRequest - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue572.py::Issue572::testPullReqeustAsIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue80.py::Issue80::testIgnoreHttpsFromGithubEnterprise - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue80.py::Issue80::testIgnoreHttpsFromGithubEnterpriseWithPort - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue823.py::Issue823::testGetPendingInvitationAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue87.py::Issue87::testCreateIssueWithEscapedPercentInBody - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue87.py::Issue87::testCreateIssueWithEscapedPercentInTitle - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue87.py::Issue87::testCreateIssueWithPercentInBody - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue87.py::Issue87::testCreateIssueWithPercentInTitle - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue937.py::Issue937::testCollaboratorsAffiliation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Issue945.py::Issue945::testReservedPaginatedListAttributePreservation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testCreateReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testDeleteReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testGetReactions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testMinimize - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueComment.py::IssueComment::testUnminimize - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_added_to_project_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_assigned_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_base_ref_changed_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_closed_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_converted_note_to_issue_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_demilestoned_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_head_ref_deleted_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_head_ref_restored_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_labeled_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_locked_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_marked_as_duplicate_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_mentioned_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_merged_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_milestoned_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_moved_columns_in_project_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_referenced_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_removed_from_project_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_renamed_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_reopened_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_review_dismissed_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_review_request_removed_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_review_requested_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_subscribed_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_unassigned_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_unlabeled_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_unlocked_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/IssueEvent.py::IssueEvent::testEvent_unmarked_as_duplicate_Attributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Label.py::Label::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Label.py::Label::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Label.py::Label::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/License.py::License::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Logging_.py::Logging::testLoggingWithBaseUrl - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Logging_.py::Logging::testLoggingWithBasicAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Logging_.py::Logging::testLoggingWithOAuthAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Logging_.py::Logging::testLoggingWithoutAuthentication - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Markdown.py::Markdown::testRenderGithubFlavoredMarkdown - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Markdown.py::Markdown::testRenderMarkdown - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testGetArchiveUrlWhenDeleted - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testGetArchiveUrlWhenExported - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testGetArchiveUrlWhenNotExported - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testGetStatus - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Migration.py::Migration::testUnlockRepo - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Milestone.py::Milestone::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Milestone.py::Milestone::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Milestone.py::Milestone::testEditWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Milestone.py::Milestone::testEditWithMinimalParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Milestone.py::Milestone::testGetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testAttributesOfOtherUser - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testAttributesOfSelf - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetFollowers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetFollowing - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetGists - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetKeys - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetOrganizationMembership - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetOrganizationMembershipNotMember - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetOrgs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetPublicEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetPublicReceivedEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetReceivedEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetRepo - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetReposWithAllArgs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetStarred - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetSubscriptions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testGetWatched - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testHasInFollowing - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser.py::NamedUser::testUserEquality - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/NamedUser1430.py::NamedUser1430::testGetProjects - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Notification.py::Notification::testMarkAsDone - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Notification.py::Notification::testMarkAsRead - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testAddMembersAdminRole - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testAddMembersDefaultRole - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateActionsSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateCustomProperties - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateCustomProperty - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateCustomPropertyValues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateDependabotSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateDependabotSecretSelected - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateFork - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateHookWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateHookWithMinimalParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateMigration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateRepoFromTemplate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateRepoFromTemplateWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateRepoWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateRepoWithMinimalArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateRepositoryWithAutoInit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateSecretSelected - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateTeam - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateTeamWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateVariable - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testCreateVariableSelected - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testDeleteHook - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testEditHookWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testEditHookWithMinimalParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testEditWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testEditWithoutArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetCustomProperties - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetCustomProperty - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetDependabotAlerts - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetDependabotAlertsWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetDependabotSecrets - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetHook - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetHookDeliveries - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetHookDelivery - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetHooks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetInstallations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetIssuesWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetMembers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetMigrations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetOutsideCollaborators - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetPublicMembers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetReposSorted - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetReposWithType - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetSecrets - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetSecretsFail - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetTeamBySlug - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetTeams - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetVariable - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testGetVariables - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testInviteUserAsNonOwner - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testInviteUserByEmail - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testInviteUserByName - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testInviteUserWithBoth - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testInviteUserWithNeither - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testInviteUserWithRoleAndTeam - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testListCustomPropertyValues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testMembers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testOrgGetSecretAssertion - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testOrgSecretEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testOutsideCollaborators - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testPublicMembers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization.py::Organization::testRemoveCustomProperty - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization1437.py::Organization1437::testCreateProject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Organization2072.py::Organization2072::testCancelInvitation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/OrganizationHasInMembers.py::OrganizationHasInMembers::testHasInMembers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testCustomPerPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testCustomPerPageIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testCustomPerPageReversedIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testCustomPerPageWithGetPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testCustomPerPageWithNoUrlParams - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testCustomPerPageWithNoUrlParams2 - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testGetFirstPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testGetThirdPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testGettingTheReversedListDoesNotModifyTheOriginalList - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testGraphQlPagination - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testIntIndexingAfterIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testIntIndexingInFirstPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testIntIndexingInThirdPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testInterruptedIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testInterruptedIterationInSlice - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testIsApiType - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testIteration - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testIterationWithPrefetchedFirstPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testMergeDicts - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testNoFirstPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testOverrideAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testReversedIterationSupportsIterator - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testReversedIterationWithMultiplePages - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testReversedIterationWithSinglePage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testSeveralIterations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testSliceIndexingInFirstPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testSliceIndexingUntilEnd - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testSliceIndexingUntilFourthPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testTotalCountWithDictionary - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PaginatedList.py::PaginatedList::testTotalCountWithNoLastPage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Permissions.py::Permissions::testUserRepoPermissionAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Permissions.py::Permissions::testUserRepoPermissionRepresentation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Persistence.py::Persistence::testLoad - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Persistence.py::Persistence::testLoadAndUpdate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Pickle.py::Pickle::testPickleGithub - AttributeError: 'Requester' object has no attribute '' FAILED tests/Pickle.py::Pickle::testPicklePaginatedList - AttributeError: 'Requester' object has no attribute '' FAILED tests/Pickle.py::Pickle::testPickleRepository - AttributeError: 'Requester' object has no attribute '' FAILED tests/PoolSize.py::PoolSize::testReturnsRepoAfterSettingPoolSize - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PoolSize.py::PoolSize::testReturnsRepoAfterSettingPoolSizeHttp - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testCreateCardFromIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testCreateCardWithNote - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testCreateColumn - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testEditCardArchived - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testEditCardNote - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testEditCardWithoutParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testGetAllProjectCards - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testGetOrganizationProjects - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testGetProject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testGetProjectCardContent - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testGetRepositoryProjects - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testProjectAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testProjectCardAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testProjectCardDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testProjectCardMove - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project.py::Project::testProjectColumnAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project1434.py::Project1434::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project1434.py::Project1434::testEditWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Project1434.py::Project1434::testEditWithoutParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testCreateCard - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testGetAllCards - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testGetArchivedCards - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testGetCards - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testGetNotArchivedCards - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testGetProjectColumn - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testMoveAfter - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testMoveFirst - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ProjectColumn.py::ProjectColumn::testMoveLast - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PublicKey.py::PublicKey::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PublicKey.py::PublicKey::testAttributes_with_int_key_id - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testAddAndRemoveAssignees - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testAddAndRemoveLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testAddAndRemoveLabelsWithStringArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testAttributesIssue256 - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateIssueComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateMultilineReviewComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateMultilineReviewCommentAsSuggestion - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateMultilineReviewCommentChoosingSide - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateReviewCommentInReplyTo - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testCreateReviewCommentSubjectType - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testDeleteAndSetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testDeleteAndSetLabelsWithStringArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testDeleteBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testDeleteOnMerge - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testDisableAutomerge - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testEditWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testEditWithoutArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testEnableAutomerge - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testEnableAutomergeDefaultValues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testEnableAutomergeError - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testEnableAutomergeNotValidMergeMethod - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testForceDeleteBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetCommits - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetFiles - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetIssueComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetIssueComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetIssueEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testGetReviewComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testMerge - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testMergeWithCommitMessage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testRestoreBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testReviewRequests - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest.py::PullRequest::testUpdateBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1168.py::PullRequest1168::testGetIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1168.py::PullRequest1168::testGetPullRequest - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1169.py::PullRequest1169::testReviewApproveWithoutBody - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1375.py::PullRequest1375::testCreateReviewCommentReply - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1682.py::PullRequest1682::test_no_parameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1682.py::PullRequest1682::test_object_parameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1682.py::PullRequest1682::test_string_parameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1684.py::PullRequest1684::testDeleteRunnerId - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1684.py::PullRequest1684::testDeleteRunnerObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest1684.py::PullRequest1684::testGetRunners - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequest2408.py::PullRequest2408::test_get_workflow_runs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestComment.py::PullRequestComment::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestComment.py::PullRequestComment::testCreateReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestComment.py::PullRequestComment::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestComment.py::PullRequestComment::testDeleteReaction - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestComment.py::PullRequestComment::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestComment.py::PullRequestComment::testGetReactions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestFile.py::PullRequestFile::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestReview.py::PullRequestReview::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestReview.py::PullRequestReview::testDismiss - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestReview.py::PullRequestReview::testDoesNotModifyPullRequest - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestReview.py::PullRequestReview::testEdit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/PullRequestReview1856.py::PullRequestReview1856::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RateLimiting.py::RateLimiting::testGetRateLimit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RateLimiting.py::RateLimiting::testRateLimiting - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RateLimiting.py::RateLimiting::testResetTime - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RawData.py::RawData::testCompletedObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RawData.py::RawData::testNonCompletableObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RawData.py::RawData::testNotYetCompletedObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Reaction.py::Reaction::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Reaction.py::Reaction::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ReleaseAsset.py::ReleaseAsset::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ReleaseAsset.py::ReleaseAsset::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/ReleaseAsset.py::ReleaseAsset::testUpdate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testAddToCollaboratorsCustomRole - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testAssignees - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testBadSubscribePubSubHubbub - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCodeScanAlerts - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCollaboratorPermission - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCollaboratorPermissionNoPushAccess - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCollaborators - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCompare - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCompareCommitPagination - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateAutolink - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateDeployment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateFile - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateFork - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateForkOrg - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitBlob - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitCommit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitCommitWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitCommitWithParents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitRef - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitRelease - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitReleaseGenerateReleaseNotes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitReleaseWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitTag - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitTagWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitTree - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitTreeWithBaseTree - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitTreeWithNullSha - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateGitTreeWithSha - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateHookWithAllParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateHookWithMinimalParameters - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateIssueWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateIssueWithAllArgumentsStringLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateKey - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateMilestone - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateMilestoneWithMinimalArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateProject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreatePull - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreatePullFromIssue - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateRepoActionsSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateRepoDependabotSecret - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateRepositoryDispatch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testCreateSourceImport - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testDeleteFile - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testEditWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testEditWithDefaultBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testEditWithoutArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetArchiveLink - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetAutolinks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetCommits - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetCommitsWithArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetCommitsWithAuthor - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetCommitsWithSinceUntil - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetContents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetContentsDir - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetContentsDirWithSlash - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetContentsWithRef - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetContributors - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetCustomProperties - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDeployments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDiscussion - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDiscussions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDiscussionsByAnswered - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDiscussionsByCategory - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDiscussionsByStates - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetDownloads - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetForks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetGitRef - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetGitRefWithIssue102Reverted - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetGitRefs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetGitTreeWithRecursive - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetHookDeliveries - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetHookDelivery - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetHooks - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetIssuesComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetIssuesEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetIssuesWithArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetIssuesWithWildcards - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetKeys - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetLabel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetLabels - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetLanguages - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetLicense - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetMatchingRefs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetMilestones - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetMilestonesWithArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetNetworkEvents - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetPendingInvitations - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetPulls - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetPullsComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetPullsWithArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetRepositoryWith301Redirect - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetSourceImport - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetStargazers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetStargazersWithDates - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetSubscribers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetTeams - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetTopics - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetWatchers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetWorkflowId - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetWorkflowRuns - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetWorkflowRunsCreated - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testGetWorkflows - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testLegacySearchIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testMarkNotificationsAsRead - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testMergeWithConflict - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testMergeWithMessage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testMergeWithNothingToDo - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testMergeWithoutMessage - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRemoveAutolink - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRemoveInvitation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRenameBranchObject - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRenameBranchString - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testReplaceTopics - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRepoGetSecretAssertion - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRepoSecrets - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRepoVariable - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testRepoVariables - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testStatisticsCodeFrequency - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testStatisticsCommitActivity - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testStatisticsContributors - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testStatisticsParticipation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testStatisticsPunchCard - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testSubscribePubSubHubbub - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testUnsubscribePubSubHubbub - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testUpdateCustomProperties - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::Repository::testUpdateFile - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testChangeAutomateFixWhenNoVulnerabilityAlert - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testDisableAutomatedSecurityFixes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testDisableVulnerabilityAlert - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testEnableAutomatedSecurityFixes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testEnableVulnerabilityAlert - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testGetIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testGetVulnerabilityAlert - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testGetVulnerabilityAlertWhenTurnedOff - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testOwner - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Repository.py::LazyRepository::testRequester - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testAddVulnerability - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testCreateRepositoryAdvisory - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testGetAdvisories - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testOfferCredit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testOfferCredits - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testRemoveCredit - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testRepositoryWithNoAdvisories - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testUpdateRepositoryAdvisory - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryAdvisory.py::RepositoryAdvisory::testUpdateSingleFieldDoesNotRemoveOtherFields - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryDiscussion.py::RepositoryDiscussion::testAddAndDeleteComment - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryDiscussion.py::RepositoryDiscussion::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryDiscussion.py::RepositoryDiscussion::testGetComments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryDiscussion.py::RepositoryDiscussion::testGetCommentsWithoutNodeId - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryKey.py::RepositoryKey::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryKey.py::RepositoryKey::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RepositoryKey.py::RepositoryKey::testYetUnusedKey - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::Requester::testBaseUrlHostRedirection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::Requester::testBaseUrlPortRedirection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::Requester::testBaseUrlPrefixRedirection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::Requester::testBaseUrlSchemeRedirection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::Requester::testLoggingRedirection - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::RequesterUnThrottled::testShouldNotDeferRequests - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::RequesterThrottled::testShouldDeferRequests - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Requester.py::RequesterThrottled::testShouldDeferWrites - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RequiredPullRequestReviews.py::RequiredPullRequestReviews::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RequiredPullRequestReviews.py::RequiredPullRequestReviews::testOrganizationOwnedTeam - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/RequiredStatusChecks.py::RequiredStatusChecks::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Retry.py::Retry::testRaisesRetryErrorAfterMaxRetries - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Retry.py::Retry::testReturnsRepoAfter1Retry - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Retry.py::Retry::testReturnsRepoAfter3Retries - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Retry.py::Retry::testReturnsRepoAfterSettingRetryHttp - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Retry.py::Retry::testShouldNotRetryWhenStatusNotOnList - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testGetPageOnSearchUsers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testPaginateSearchCommits - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testPaginateSearchTopics - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testPaginateSearchUsers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchCode - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchCommits - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchHighlightingCode - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchIssues - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchReposWithNoResults - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchTopics - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testSearchUsers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testUrlquotingOfQualifiers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Search.py::Search::testUrlquotingOfQuery - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/SecurityAndAnalysis.py::SecurityAndAnalysis::testRepoSecurityAndAnalysisAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/SecurityAndAnalysis.py::SecurityAndAnalysis::testRepoSecurityAndAnalysisRepresentation - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/SelfHostedActionsRunner.py::SelfHostedActionsRunner::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/SourceImport.py::SourceImport::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/SourceImport.py::SourceImport::testUpdate - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Tag.py::Tag::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testDiscussions - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testEditWithAllArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testEditWithoutArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testGetTeams - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testMembers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testRepoPermission - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testRepos - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testTeamMembership - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Team.py::Team::testUpdateTeamRepository - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Topic.py::Topic::testAllFields - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Topic.py::Topic::testNamesFromSearchResults - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Traffic.py::Traffic::testGetClones - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Traffic.py::Traffic::testGetPaths - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Traffic.py::Traffic::testGetReferrers - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Traffic.py::Traffic::testGetViews - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/UserKey.py::UserKey::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/UserKey.py::UserKey::testDelete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testCreateDispatchForNonTriggerEnabled - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testCreateDispatchWithBranch - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testCreateDispatchWithString - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testCreateDispatchWithTag - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testGetRunsWithCreated - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testGetRunsWithHeadSha - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testGetRunsWithNoArguments - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testGetRunsWithObjects - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/Workflow.py::Workflow::testGetRunsWithStrings - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowJob.py::WorkflowJob::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::testAttributes - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_cancel - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_delete - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_jobs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_rerun - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_rerun_failed_jobs - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_rerun_with_successful_run - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... FAILED tests/WorkflowRun.py::WorkflowRun::test_timing - httpretty.errors.UnmockedError: Failed to socket.shutdown because because a... ================== 903 failed, 63 passed in 395.58s (0:06:35) ================== ERROR: InvocationError for command /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/py3/bin/pytest --cov=github --cov-report=xml (exited with code 1) py3 finish: run-test after 396.95 seconds py3 start: run-test-post py3 finish: run-test-post after 0.00 seconds ___________________________________ summary ____________________________________ ERROR: py3: commands failed cleanup /usr/src/RPM/BUILD/python3-module-PyGithub-2.5.0/.tox/.tmp/package/1/PyGithub-2.5.0-py3-none-any.whl error: Bad exit status from /usr/src/tmp/rpm-tmp.87476 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.87476 (%check) Command exited with non-zero status 1 391.63user 9.24system 6:40.97elapsed 99%CPU (0avgtext+0avgdata 131840maxresident)k 0inputs+0outputs (0major+494442minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-PyGithub-2.5.0-alt1.src.rpm' failed. Command exited with non-zero status 1 4.75user 3.31system 6:55.84elapsed 1%CPU (0avgtext+0avgdata 136888maxresident)k 280inputs+0outputs (0major+366594minor)pagefaults 0swaps