<86>Jul 29 00:32:59 userdel[2698407]: delete user 'rooter' <86>Jul 29 00:32:59 userdel[2698407]: removed group 'rooter' owned by 'rooter' <86>Jul 29 00:32:59 groupadd[2698475]: group added to /etc/group: name=rooter, GID=1874 <86>Jul 29 00:32:59 groupadd[2698475]: group added to /etc/gshadow: name=rooter <86>Jul 29 00:32:59 groupadd[2698475]: new group: name=rooter, GID=1874 <86>Jul 29 00:32:59 useradd[2698504]: new user: name=rooter, UID=1874, GID=1874, home=/root, shell=/bin/bash, from=none <86>Jul 29 00:32:59 userdel[2698585]: delete user 'builder' <86>Jul 29 00:32:59 userdel[2698585]: removed group 'builder' owned by 'builder' <86>Jul 29 00:32:59 userdel[2698585]: removed shadow group 'builder' owned by 'builder' <86>Jul 29 00:32:59 groupadd[2698641]: group added to /etc/group: name=builder, GID=1875 <86>Jul 29 00:32:59 groupadd[2698641]: group added to /etc/gshadow: name=builder <86>Jul 29 00:32:59 groupadd[2698641]: new group: name=builder, GID=1875 <86>Jul 29 00:32:59 useradd[2698682]: new user: name=builder, UID=1875, GID=1875, home=/usr/src, shell=/bin/bash, from=none <13>Jul 29 00:33:01 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Jul 29 00:33:01 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Jul 29 00:33:01 rpmi: libexpat-2.5.0-alt1 sisyphus+309227.100.1.1 1667075764 installed <13>Jul 29 00:33:01 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Jul 29 00:33:01 rpmi: libp11-kit-1:0.24.1-alt2 sisyphus+324666.100.1.1 1689083439 installed <13>Jul 29 00:33:01 rpmi: libtasn1-4.19.0-alt2 sisyphus+323514.100.1.1 1687445894 installed <13>Jul 29 00:33:01 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jul 29 00:33:01 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jul 29 00:33:01 rpmi: ca-certificates-2022.12.14-alt1 sisyphus+311754.200.1.1 1671046143 installed <13>Jul 29 00:33:01 rpmi: ca-trust-0.1.4-alt1 sisyphus+308690.100.1.1 1666182992 installed <13>Jul 29 00:33:01 rpmi: p11-kit-trust-1:0.24.1-alt2 sisyphus+324666.100.1.1 1689083439 installed <13>Jul 29 00:33:01 rpmi: libcrypto3-3.1.1-alt3 sisyphus+325072.200.2.1 1689602870 installed <13>Jul 29 00:33:01 rpmi: libssl3-3.1.1-alt3 sisyphus+325072.200.2.1 1689602870 installed <13>Jul 29 00:33:01 rpmi: python3-3.11.4-alt2 sisyphus+324359.500.4.1 1689257961 installed <13>Jul 29 00:33:02 rpmi: python3-base-3.11.4-alt2 sisyphus+324359.500.4.1 1689257961 installed <13>Jul 29 00:33:02 rpmi: tests-for-installed-python3-pkgs-0.1.22-alt1 sisyphus+319076.100.3.1 1682536051 installed <13>Jul 29 00:33:02 rpmi: rpm-build-python3-0.1.22-alt1 sisyphus+319076.100.3.1 1682536051 installed <13>Jul 29 00:33:03 rpmi: python3-module-idna-3.4-alt1 sisyphus+307942.100.1.1 1665051373 installed <13>Jul 29 00:33:04 rpmi: libcrypto1.1-1.1.1u-alt3 sisyphus+325014.100.4.1 1689538432 installed <13>Jul 29 00:33:04 rpmi: libssl1.1-1.1.1u-alt3 sisyphus+325014.100.4.1 1689538432 installed <13>Jul 29 00:33:04 rpmi: python3-module-pkg_resources-1:68.0.0-alt1 sisyphus+323352.700.5.2 1687447030 installed <13>Jul 29 00:33:04 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jul 29 00:33:04 rpmi: python3-module-cffi-1.15.1-alt2 sisyphus+311250.35200.176.1 1685739391 installed <13>Jul 29 00:33:04 rpmi: python3-module-cryptography-41.0.2-alt1 sisyphus+324647.100.1.1 1689068671 installed <13>Jul 29 00:33:04 rpmi: python3-module-openssl-23.1.1-alt2 sisyphus+319053.1700.6.1 1682668601 installed <13>Jul 29 00:33:04 rpmi: python3-module-urllib3-2:2.0.4-alt1 sisyphus+325464.100.1.1 1690199511 installed <13>Jul 29 00:33:04 rpmi: python3-module-charset-normalizer-2.1.1-alt1 sisyphus+311047.100.1.1 1669992940 installed <13>Jul 29 00:33:04 rpmi: python3-module-requests-2.31.0-alt1 sisyphus+321663.100.2.1 1684917021 installed <13>Jul 29 00:33:04 rpmi: libpython3-3.11.4-alt2 sisyphus+324359.500.4.1 1689257961 installed <13>Jul 29 00:33:04 rpmi: libncurses-6.3.20220618-alt1 sisyphus+302449.100.1.1 1655835246 installed <13>Jul 29 00:33:04 rpmi: libtinfo-devel-6.3.20220618-alt1 sisyphus+302449.100.1.1 1655835246 installed <13>Jul 29 00:33:04 rpmi: libncurses-devel-6.3.20220618-alt1 sisyphus+302449.100.1.1 1655835246 installed <13>Jul 29 00:33:04 rpmi: python3-dev-3.11.4-alt2 sisyphus+324359.500.4.1 1689257961 installed <13>Jul 29 00:33:05 rpmi: python3-module-setuptools-1:68.0.0-alt1 sisyphus+323352.700.5.2 1687447030 installed <13>Jul 29 00:33:05 rpmi: python3-module-wheel-0.41.0-alt1 sisyphus+325449.100.1.1 1690188189 installed <13>Jul 29 00:33:05 rpmi: python3-module-betamax-0.8.1-alt2 sisyphus+278715.100.1.1 1626174851 installed <13>Jul 29 00:33:05 rpmi: python3-module-trustme-1.1.0-alt1 sisyphus+324632.100.1.1 1689049631 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-requests_toolbelt-1.0.0-alt1.nosrc.rpm (w1.gzdio) <13>Jul 29 00:33:06 rpmi: python3-module-pluggy-1.2.0-alt1 sisyphus+323556.100.2.1 1689242408 installed <13>Jul 29 00:33:06 rpmi: python3-module-system-seed-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683425 installed <13>Jul 29 00:33:06 rpmi: python3-module-packaging-23.1-alt1 sisyphus+318906.100.2.1 1683015285 installed <13>Jul 29 00:33:06 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jul 29 00:33:06 rpmi: python3-module-filelock-3.12.2-alt1 sisyphus+322904.200.2.1 1686751677 installed <13>Jul 29 00:33:06 rpmi: python3-module-pytest-7.4.0-alt1 sisyphus+325101.100.3.1 1689758053 installed <13>Jul 29 00:33:06 rpmi: python3-module-pip-wheel-23.2.1-alt1 sisyphus+325450.100.1.1 1690189743 installed <13>Jul 29 00:33:06 rpmi: python3-module-setuptools-wheel-1:68.0.0-alt1 sisyphus+323352.700.5.2 1687447030 installed <13>Jul 29 00:33:06 rpmi: python3-module-wheel-wheel-0.41.0-alt1 sisyphus+325449.100.1.1 1690188189 installed <13>Jul 29 00:33:06 rpmi: python3-module-system-seed-wheels-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683425 installed <13>Jul 29 00:33:06 rpmi: python3-module-tomli-2.0.1-alt2 sisyphus+305000.3300.2.1 1660575675 installed <13>Jul 29 00:33:06 rpmi: python3-module-six-1.16.0-alt2 sisyphus+324249.100.1.1 1688484676 installed <13>Jul 29 00:33:06 rpmi: python3-module-platformdirs-3.9.1-alt1 sisyphus+325251.200.1.1 1689867383 installed <13>Jul 29 00:33:06 rpmi: python3-module-distlib-0.3.7-alt1 sisyphus+325251.100.1.1 1689867355 installed <13>Jul 29 00:33:06 rpmi: python3-module-virtualenv-20.24.2-alt1 sisyphus+325598.200.2.1 1690373440 installed <13>Jul 29 00:33:06 rpmi: python3-module-apipkg-3.0.1-alt2 sisyphus+323078.100.1.1 1686823905 installed <13>Jul 29 00:33:06 rpmi: python3-module-py-1.11.0-alt1 sisyphus+295927.100.2.1 1646050822 installed <13>Jul 29 00:33:06 rpmi: python3-module-tox-3.27.1-alt1 sisyphus+309865.500.3.1 1668591286 installed <13>Jul 29 00:33:06 rpmi: python3-module-tox-console-scripts-0.3.2-alt1 sisyphus+301745.100.2.1 1655211258 installed <13>Jul 29 00:33:06 rpmi: python3-module-tox-no-deps-0.2.0-alt1 sisyphus+301745.200.2.1 1655211304 installed <13>Jul 29 00:33:06 rpmi: python3-module-pyproject-installer-0.5.2-alt1 sisyphus+324644.100.2.1 1689089627 installed Installing python3-module-requests_toolbelt-1.0.0-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.41526 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-requests_toolbelt-1.0.0 + echo 'Source #0 (python3-module-requests_toolbelt-1.0.0.tar):' Source #0 (python3-module-requests_toolbelt-1.0.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-requests_toolbelt-1.0.0.tar + cd python3-module-requests_toolbelt-1.0.0 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.41526 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-requests_toolbelt-1.0.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-requests_toolbelt-1.0.0 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec INFO : pyproject_installer.lib.build_backend : pyproject.toml was not found, using defaults INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta:__legacy__ INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.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 INFO : root : creating build/lib INFO : root : creating build/lib/requests_toolbelt INFO : root : copying requests_toolbelt/streaming_iterator.py -> build/lib/requests_toolbelt INFO : root : copying requests_toolbelt/sessions.py -> build/lib/requests_toolbelt INFO : root : copying requests_toolbelt/exceptions.py -> build/lib/requests_toolbelt INFO : root : copying requests_toolbelt/_compat.py -> build/lib/requests_toolbelt INFO : root : copying requests_toolbelt/__init__.py -> build/lib/requests_toolbelt INFO : root : creating build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/x509.py -> build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/ssl.py -> build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/source.py -> build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/socket_options.py -> build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/host_header_ssl.py -> build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/fingerprint.py -> build/lib/requests_toolbelt/adapters INFO : root : copying requests_toolbelt/adapters/__init__.py -> build/lib/requests_toolbelt/adapters INFO : root : creating build/lib/requests_toolbelt/auth INFO : root : copying requests_toolbelt/auth/http_proxy_digest.py -> build/lib/requests_toolbelt/auth INFO : root : copying requests_toolbelt/auth/handler.py -> build/lib/requests_toolbelt/auth INFO : root : copying requests_toolbelt/auth/guess.py -> build/lib/requests_toolbelt/auth INFO : root : copying requests_toolbelt/auth/_digest_auth_compat.py -> build/lib/requests_toolbelt/auth INFO : root : copying requests_toolbelt/auth/__init__.py -> build/lib/requests_toolbelt/auth INFO : root : creating build/lib/requests_toolbelt/downloadutils INFO : root : copying requests_toolbelt/downloadutils/tee.py -> build/lib/requests_toolbelt/downloadutils INFO : root : copying requests_toolbelt/downloadutils/stream.py -> build/lib/requests_toolbelt/downloadutils INFO : root : copying requests_toolbelt/downloadutils/__init__.py -> build/lib/requests_toolbelt/downloadutils INFO : root : creating build/lib/requests_toolbelt/multipart INFO : root : copying requests_toolbelt/multipart/encoder.py -> build/lib/requests_toolbelt/multipart INFO : root : copying requests_toolbelt/multipart/decoder.py -> build/lib/requests_toolbelt/multipart INFO : root : copying requests_toolbelt/multipart/__init__.py -> build/lib/requests_toolbelt/multipart INFO : root : creating build/lib/requests_toolbelt/threaded INFO : root : copying requests_toolbelt/threaded/thread.py -> build/lib/requests_toolbelt/threaded INFO : root : copying requests_toolbelt/threaded/pool.py -> build/lib/requests_toolbelt/threaded INFO : root : copying requests_toolbelt/threaded/__init__.py -> build/lib/requests_toolbelt/threaded INFO : root : creating build/lib/requests_toolbelt/utils INFO : root : copying requests_toolbelt/utils/user_agent.py -> build/lib/requests_toolbelt/utils INFO : root : copying requests_toolbelt/utils/formdata.py -> build/lib/requests_toolbelt/utils INFO : root : copying requests_toolbelt/utils/dump.py -> build/lib/requests_toolbelt/utils INFO : root : copying requests_toolbelt/utils/deprecated.py -> build/lib/requests_toolbelt/utils INFO : root : copying requests_toolbelt/utils/__init__.py -> build/lib/requests_toolbelt/utils INFO : root : running egg_info INFO : root : creating requests_toolbelt.egg-info INFO : root : writing requests_toolbelt.egg-info/PKG-INFO INFO : root : writing dependency_links to requests_toolbelt.egg-info/dependency_links.txt INFO : root : writing requirements to requests_toolbelt.egg-info/requires.txt INFO : root : writing top-level names to requests_toolbelt.egg-info/top_level.txt INFO : root : writing manifest file 'requests_toolbelt.egg-info/SOURCES.txt' INFO : root : reading manifest file 'requests_toolbelt.egg-info/SOURCES.txt' INFO : root : reading manifest template 'MANIFEST.in' WARNING : root : no previously-included directories found matching 'docs/_build' WARNING : root : warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution WARNING : root : warning: no previously-included files matching '__pycache__' found anywhere in distribution WARNING : root : warning: no previously-included files matching '*.so' found anywhere in distribution WARNING : root : warning: no previously-included files matching '*.pyd' found anywhere in distribution INFO : root : adding license file 'LICENSE' INFO : root : adding license file 'AUTHORS.rst' INFO : root : writing manifest file 'requests_toolbelt.egg-info/SOURCES.txt' /usr/lib64/python3/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'requests_toolbelt.cookies' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'requests_toolbelt.cookies' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'requests_toolbelt.cookies' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'requests_toolbelt.cookies' to be distributed and are already explicitly excluding 'requests_toolbelt.cookies' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) INFO : root : creating build/lib/requests_toolbelt/cookies INFO : root : copying requests_toolbelt/cookies/__init__.py -> build/lib/requests_toolbelt/cookies INFO : root : copying requests_toolbelt/cookies/forgetful.py -> build/lib/requests_toolbelt/cookies INFO : wheel : 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 INFO : root : creating build/bdist.linux-x86_64/wheel INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/cookies INFO : root : copying build/lib/requests_toolbelt/cookies/forgetful.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/cookies INFO : root : copying build/lib/requests_toolbelt/cookies/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/cookies INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/utils INFO : root : copying build/lib/requests_toolbelt/utils/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/utils INFO : root : copying build/lib/requests_toolbelt/utils/deprecated.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/utils INFO : root : copying build/lib/requests_toolbelt/utils/dump.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/utils INFO : root : copying build/lib/requests_toolbelt/utils/formdata.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/utils INFO : root : copying build/lib/requests_toolbelt/utils/user_agent.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/utils INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/threaded INFO : root : copying build/lib/requests_toolbelt/threaded/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/threaded INFO : root : copying build/lib/requests_toolbelt/threaded/pool.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/threaded INFO : root : copying build/lib/requests_toolbelt/threaded/thread.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/threaded INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/multipart INFO : root : copying build/lib/requests_toolbelt/multipart/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/multipart INFO : root : copying build/lib/requests_toolbelt/multipart/decoder.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/multipart INFO : root : copying build/lib/requests_toolbelt/multipart/encoder.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/multipart INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/downloadutils INFO : root : copying build/lib/requests_toolbelt/downloadutils/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/downloadutils INFO : root : copying build/lib/requests_toolbelt/downloadutils/stream.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/downloadutils INFO : root : copying build/lib/requests_toolbelt/downloadutils/tee.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/downloadutils INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/auth INFO : root : copying build/lib/requests_toolbelt/auth/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/auth INFO : root : copying build/lib/requests_toolbelt/auth/_digest_auth_compat.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/auth INFO : root : copying build/lib/requests_toolbelt/auth/guess.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/auth INFO : root : copying build/lib/requests_toolbelt/auth/handler.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/auth INFO : root : copying build/lib/requests_toolbelt/auth/http_proxy_digest.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/auth INFO : root : creating build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/fingerprint.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/host_header_ssl.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/socket_options.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/source.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/ssl.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/adapters/x509.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt/adapters INFO : root : copying build/lib/requests_toolbelt/__init__.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt INFO : root : copying build/lib/requests_toolbelt/_compat.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt INFO : root : copying build/lib/requests_toolbelt/exceptions.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt INFO : root : copying build/lib/requests_toolbelt/sessions.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt INFO : root : copying build/lib/requests_toolbelt/streaming_iterator.py -> build/bdist.linux-x86_64/wheel/requests_toolbelt INFO : root : running install_egg_info INFO : root : Copying requests_toolbelt.egg-info to build/bdist.linux-x86_64/wheel/requests_toolbelt-1.0.0-py3.11.egg-info INFO : root : running install_scripts INFO : wheel : creating build/bdist.linux-x86_64/wheel/requests_toolbelt-1.0.0.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/dist/.tmp-imb9j9ge/requests_toolbelt-1.0.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it INFO : wheel : adding 'requests_toolbelt/__init__.py' INFO : wheel : adding 'requests_toolbelt/_compat.py' INFO : wheel : adding 'requests_toolbelt/exceptions.py' INFO : wheel : adding 'requests_toolbelt/sessions.py' INFO : wheel : adding 'requests_toolbelt/streaming_iterator.py' INFO : wheel : adding 'requests_toolbelt/adapters/__init__.py' INFO : wheel : adding 'requests_toolbelt/adapters/fingerprint.py' INFO : wheel : adding 'requests_toolbelt/adapters/host_header_ssl.py' INFO : wheel : adding 'requests_toolbelt/adapters/socket_options.py' INFO : wheel : adding 'requests_toolbelt/adapters/source.py' INFO : wheel : adding 'requests_toolbelt/adapters/ssl.py' INFO : wheel : adding 'requests_toolbelt/adapters/x509.py' INFO : wheel : adding 'requests_toolbelt/auth/__init__.py' INFO : wheel : adding 'requests_toolbelt/auth/_digest_auth_compat.py' INFO : wheel : adding 'requests_toolbelt/auth/guess.py' INFO : wheel : adding 'requests_toolbelt/auth/handler.py' INFO : wheel : adding 'requests_toolbelt/auth/http_proxy_digest.py' INFO : wheel : adding 'requests_toolbelt/cookies/__init__.py' INFO : wheel : adding 'requests_toolbelt/cookies/forgetful.py' INFO : wheel : adding 'requests_toolbelt/downloadutils/__init__.py' INFO : wheel : adding 'requests_toolbelt/downloadutils/stream.py' INFO : wheel : adding 'requests_toolbelt/downloadutils/tee.py' INFO : wheel : adding 'requests_toolbelt/multipart/__init__.py' INFO : wheel : adding 'requests_toolbelt/multipart/decoder.py' INFO : wheel : adding 'requests_toolbelt/multipart/encoder.py' INFO : wheel : adding 'requests_toolbelt/threaded/__init__.py' INFO : wheel : adding 'requests_toolbelt/threaded/pool.py' INFO : wheel : adding 'requests_toolbelt/threaded/thread.py' INFO : wheel : adding 'requests_toolbelt/utils/__init__.py' INFO : wheel : adding 'requests_toolbelt/utils/deprecated.py' INFO : wheel : adding 'requests_toolbelt/utils/dump.py' INFO : wheel : adding 'requests_toolbelt/utils/formdata.py' INFO : wheel : adding 'requests_toolbelt/utils/user_agent.py' INFO : wheel : adding 'requests_toolbelt-1.0.0.dist-info/AUTHORS.rst' INFO : wheel : adding 'requests_toolbelt-1.0.0.dist-info/LICENSE' INFO : wheel : adding 'requests_toolbelt-1.0.0.dist-info/METADATA' INFO : wheel : adding 'requests_toolbelt-1.0.0.dist-info/WHEEL' INFO : wheel : adding 'requests_toolbelt-1.0.0.dist-info/top_level.txt' INFO : wheel : adding 'requests_toolbelt-1.0.0.dist-info/RECORD' INFO : wheel : removing build/bdist.linux-x86_64/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: requests_toolbelt-1.0.0-py2.py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.44326 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-requests_toolbelt-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-requests_toolbelt-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-requests_toolbelt-1.0.0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-requests_toolbelt-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: requests_toolbelt-1.0.0-py2.py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-requests_toolbelt-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-requests_toolbelt-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: requests_toolbelt-1.0.0.dist-info/AUTHORS.rst DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: requests_toolbelt-1.0.0.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: requests_toolbelt-1.0.0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: requests_toolbelt-1.0.0.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: requests_toolbelt-1.0.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-requests_toolbelt-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-requests_toolbelt-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-requests_toolbelt-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-requests_toolbelt-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-requests_toolbelt-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-requests_toolbelt-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python3 modules in /usr/src/tmp/python3-module-requests_toolbelt-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/fingerprint.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/host_header_ssl.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/socket_options.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/source.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/ssl.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/x509.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/_digest_auth_compat.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/guess.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/handler.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/http_proxy_digest.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/cookies/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/cookies/forgetful.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/stream.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/tee.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/decoder.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/encoder.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/pool.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/thread.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/deprecated.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/dump.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/formdata.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/user_agent.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/_compat.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/exceptions.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/sessions.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/streaming_iterator.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-requests_toolbelt-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/fingerprint.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/host_header_ssl.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/socket_options.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/source.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/ssl.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/x509.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/_digest_auth_compat.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/guess.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/handler.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/http_proxy_digest.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/cookies/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/cookies/forgetful.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/stream.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/tee.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/decoder.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/encoder.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/pool.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/thread.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/deprecated.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/dump.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/formdata.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/user_agent.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/_compat.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/exceptions.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/sessions.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/streaming_iterator.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-requests_toolbelt-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/fingerprint.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/host_header_ssl.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/socket_options.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/source.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/ssl.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/adapters/x509.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/_digest_auth_compat.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/guess.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/handler.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/auth/http_proxy_digest.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/cookies/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/cookies/forgetful.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/stream.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/downloadutils/tee.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/decoder.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/multipart/encoder.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/pool.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/threaded/thread.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/deprecated.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/dump.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/formdata.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/utils/user_agent.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/__init__.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/_compat.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/exceptions.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/sessions.py compile /usr/src/tmp/python3-module-requests_toolbelt-buildroot/usr/lib/python3/site-packages/requests_toolbelt/streaming_iterator.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/_compat.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/_compat.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/exceptions.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/exceptions.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/sessions.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/sessions.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/streaming_iterator.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/__pycache__/streaming_iterator.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/fingerprint.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/fingerprint.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/host_header_ssl.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/host_header_ssl.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/socket_options.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/socket_options.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/source.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/source.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/ssl.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/ssl.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/x509.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/adapters/__pycache__/x509.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/__init__.cpython-311.opt-2.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/__init__.cpython-311.opt-1.pyc' './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/_digest_auth_compat.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/_digest_auth_compat.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/guess.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/guess.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/handler.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/handler.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/http_proxy_digest.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/auth/__pycache__/http_proxy_digest.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/cookies/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/cookies/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/cookies/__pycache__/__init__.cpython-311.opt-2.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/cookies/__pycache__/__init__.cpython-311.opt-1.pyc' './usr/lib/python3/site-packages/requests_toolbelt/cookies/__pycache__/forgetful.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/cookies/__pycache__/forgetful.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/__init__.cpython-311.opt-2.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/__init__.cpython-311.opt-1.pyc' './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/stream.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/stream.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/tee.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/downloadutils/__pycache__/tee.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/multipart/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/multipart/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/multipart/__pycache__/decoder.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/multipart/__pycache__/decoder.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/multipart/__pycache__/encoder.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/multipart/__pycache__/encoder.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/threaded/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/threaded/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/threaded/__pycache__/pool.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/threaded/__pycache__/pool.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/threaded/__pycache__/thread.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/threaded/__pycache__/thread.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/__init__.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/__init__.cpython-311.opt-2.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/__init__.cpython-311.opt-1.pyc' './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/deprecated.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/deprecated.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/dump.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/dump.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/formdata.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/formdata.cpython-311.pyc' './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/user_agent.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/requests_toolbelt/utils/__pycache__/user_agent.cpython-311.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.44326 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-requests_toolbelt-1.0.0 ++ cat ./dist/.wheeltracker + _tox_wheel=requests_toolbelt-1.0.0-py2.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/requests_toolbelt-1.0.0-py2.py3-none-any.whl using tox.ini: /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/tox.ini (pid 2747957) no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py27' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py37' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py38' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py39' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py310' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py311' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'pypy' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'pypy3' no-deps plugin: deps: '[flake8]' will be skipped for 'py27-flake8' no-deps plugin: deps: '[flake8]' will be skipped for 'py37-flake8' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", betamax>0.5.0]' will be skipped for 'noopenssl' no-deps plugin: deps: '[flake8, flake8-docstrings]' will be skipped for 'docstrings' no-deps plugin: deps: '[requests>=2.0.1,<3.0.0, pytest, mock;python_version<"3.3", pyopenssl, ndg-httpsclient, betamax>0.5.0, trustme]' will be skipped for 'py3' no-deps plugin: deps: '[sphinx>=1.3.0, sphinx_rtd_theme, pyopenssl, .]' will be skipped for 'docs' no-deps plugin: deps: '[readme_renderer]' will be skipped for 'readme' no-deps plugin: deps: '[twine >= 1.4.0, wheel]' will be skipped for 'release' using tox-3.27.1 from /usr/lib/python3/site-packages/tox/__init__.py (pid 2747957) using package '/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/dist/requests_toolbelt-1.0.0-py2.py3-none-any.whl', skipping 'sdist' activity package .tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl links to dist/requests_toolbelt-1.0.0-py2.py3-none-any.whl (/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0) py3 uses /usr/bin/python3 py3 start: getenv /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3 py3 cannot reuse: -r flag py3 create: /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3 setting PATH=/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [2748770] /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox$ /usr/bin/python3 -m virtualenv --system-site-packages --no-download --python /usr/bin/python3 py3 created virtual environment CPython3.11.4.final.0-64 in 165ms creator CPython3Posix(dest=/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3, clear=False, no_vcs_ignore=False, global=True) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/usr/src/.local/share/virtualenv) added seed packages: pip==23.2.1, setuptools==68.0.0, wheel==0.41.0 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator setting PATH=/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [2749716] /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0$ /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.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-requests_toolbelt-1.0.0/.tox/py3/bin Generating script tox into /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin Generating script tox-quickstart into /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin Generating script virtualenv into /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin Generating script py.test into /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin Generating script pytest into /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin Generating script normalizer into /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin py3 finish: getenv /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3 after 0.32 seconds py3 start: installpkg /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl py3 inst: /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl write config to /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/.tox-config1 as 'efe29b6cd9347659ad70366b7876232b0cfa00b09ae59c831c4d0c74dfd297e1 /usr/bin/python3\n3.27.1 1 0 0' setting PATH=/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [2750141] /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0$ /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin/python -m pip install --exists-action w .tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl Processing ./.tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl Requirement already satisfied: requests<3.0.0,>=2.0.1 in /usr/lib/python3/site-packages (from requests-toolbelt==1.0.0) (2.31.0) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/lib/python3/site-packages (from requests<3.0.0,>=2.0.1->requests-toolbelt==1.0.0) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/site-packages (from requests<3.0.0,>=2.0.1->requests-toolbelt==1.0.0) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/site-packages (from requests<3.0.0,>=2.0.1->requests-toolbelt==1.0.0) (2.0.4) Installing collected packages: requests-toolbelt Successfully installed requests-toolbelt-1.0.0 py3 finish: installpkg /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl after 0.86 seconds py3 start: envreport setting PATH=/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [2754859] /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0$ /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin/python -m pip freeze >.tox/py3/log/py3-0.log py3 finish: envreport after 0.26 seconds py3 installed: apipkg==3.0.1,betamax==0.8.1,cffi==1.15.1,charset-normalizer==2.1.1,cryptography==41.0.2,distlib==0.3.7,filelock==3.12.2,idna==3.4,iniconfig==2.0.0,packaging==23.1,platformdirs==3.9.1,pluggy==1.2.0,py==1.11.0,pycparser==2.21,pyOpenSSL==23.1.1,pyproject-installer==0.5.2,pytest==7.4.0,requests==2.31.0,requests-toolbelt @ file:///usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl#sha256=9d889287b8814772d8d62f990de5134de2231c989ac1c12e0ba883f6c3c1fe3c,six==1.16.0,tomli==2.0.1,tox==3.27.1,tox-console-scripts==0.3.2,tox-no-deps==0.2.0,trustme==1.1.0,urllib3==2.0.4,virtualenv==20.24.2 py3 start: run-test-pre py3 run-test-pre: PYTHONHASHSEED='3060036107' py3 finish: run-test-pre after 0.00 seconds py3 start: run-test py3 run-test: commands[0] | pytest -W error::DeprecationWarning setting PATH=/usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [2756279] /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0$ /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin/pytest -W error::DeprecationWarning ..........................................FF......ssss.................. [ 42%] ...................................FF.FF..............................s. [ 85%] ......................... [100%] =================================== FAILURES =================================== ___________________ TestDumpRealResponses.test_dump_response ___________________ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: > yield /usr/lib/python3/site-packages/urllib3/response.py:710: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , amt = 10240 def _raw_read( self, amt: int | None = None, ) -> bytes: """ Reads `amt` of bytes from the socket. """ if self._fp is None: return None # type: ignore[return-value] fp_closed = getattr(self._fp, "closed", False) with self._error_catcher(): data = self._fp_read(amt) if not fp_closed else b"" if amt is not None and amt != 0 and not data: # Platform-specific: Buggy versions of Python. # Close the connection when no data is returned # # This is redundant to what httplib/http.client _should_ # already do. However, versions of python released before # December 15, 2012 (http://bugs.python.org/issue16298) do # not properly close the connection in all cases. There is # no harm in redundantly calling close. self._fp.close() if ( self.enforce_content_length and self.length_remaining is not None and self.length_remaining != 0 ): # This is an edge case that httplib failed to cover due # to concerns of backward compatibility. We're # addressing it here to make sure IncompleteRead is # raised during streaming, so all calls with incorrect # Content-Length are caught. > raise IncompleteRead(self._fp_bytes_read, self.length_remaining) E urllib3.exceptions.IncompleteRead: IncompleteRead(234 bytes read, 5 more expected) /usr/lib/python3/site-packages/urllib3/response.py:835: IncompleteRead The above exception was the direct cause of the following exception: self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. > raise ProtocolError(f"Connection broken: {e!r}", e) from e E urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(234 bytes read, 5 more expected)', IncompleteRead(234 bytes read, 5 more expected)) /usr/lib/python3/site-packages/urllib3/response.py:727: ProtocolError During handling of the above exception, another exception occurred: self = def test_dump_response(self): session = requests.Session() recorder = get_betamax(session) with recorder.use_cassette('simple_get_request'): > response = session.get('https://httpbin.org/get') tests/test_dump.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:602: in get return self.request("GET", url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:747: in send r.content /usr/lib/python3/site-packages/requests/models.py:899: in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" /usr/lib/python3/site-packages/requests/models.py:816: in generate yield from self.raw.stream(chunk_size, decode_content=True) /usr/lib/python3/site-packages/urllib3/response.py:940: in stream data = self.read(amt=amt, decode_content=decode_content) /usr/lib/python3/site-packages/urllib3/response.py:911: in read data = self._raw_read(amt) /usr/lib/python3/site-packages/urllib3/response.py:813: in _raw_read with self._error_catcher(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. raise ProtocolError(f"Connection broken: {e!r}", e) from e # If no exception is thrown, we should avoid cleaning up # unnecessarily. clean_exit = True finally: # If we didn't terminate cleanly, we need to throw away our # connection. if not clean_exit: # The response may not be closed but we're not going to use it # anymore so close it now to ensure that the connection is # released back to the pool. if self._original_response: > self._original_response.close() E AttributeError: 'MockHTTPResponse' object has no attribute 'close' /usr/lib/python3/site-packages/urllib3/response.py:740: AttributeError _____________________ TestDumpRealResponses.test_dump_all ______________________ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: > yield /usr/lib/python3/site-packages/urllib3/response.py:710: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , amt = 10240 def _raw_read( self, amt: int | None = None, ) -> bytes: """ Reads `amt` of bytes from the socket. """ if self._fp is None: return None # type: ignore[return-value] fp_closed = getattr(self._fp, "closed", False) with self._error_catcher(): data = self._fp_read(amt) if not fp_closed else b"" if amt is not None and amt != 0 and not data: # Platform-specific: Buggy versions of Python. # Close the connection when no data is returned # # This is redundant to what httplib/http.client _should_ # already do. However, versions of python released before # December 15, 2012 (http://bugs.python.org/issue16298) do # not properly close the connection in all cases. There is # no harm in redundantly calling close. self._fp.close() if ( self.enforce_content_length and self.length_remaining is not None and self.length_remaining != 0 ): # This is an edge case that httplib failed to cover due # to concerns of backward compatibility. We're # addressing it here to make sure IncompleteRead is # raised during streaming, so all calls with incorrect # Content-Length are caught. > raise IncompleteRead(self._fp_bytes_read, self.length_remaining) E urllib3.exceptions.IncompleteRead: IncompleteRead(234 bytes read, 5 more expected) /usr/lib/python3/site-packages/urllib3/response.py:835: IncompleteRead The above exception was the direct cause of the following exception: self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. > raise ProtocolError(f"Connection broken: {e!r}", e) from e E urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(234 bytes read, 5 more expected)', IncompleteRead(234 bytes read, 5 more expected)) /usr/lib/python3/site-packages/urllib3/response.py:727: ProtocolError During handling of the above exception, another exception occurred: self = def test_dump_all(self): session = requests.Session() recorder = get_betamax(session) with recorder.use_cassette('redirect_request_for_dump_all'): > response = session.get('https://httpbin.org/redirect/5') tests/test_dump.py:392: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:602: in get return self.request("GET", url, **kwargs) /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:725: in send history = [resp for resp in gen] /usr/lib/python3/site-packages/requests/sessions.py:725: in history = [resp for resp in gen] /usr/lib/python3/site-packages/requests/sessions.py:266: in resolve_redirects resp = self.send( /usr/lib/python3/site-packages/requests/sessions.py:747: in send r.content /usr/lib/python3/site-packages/requests/models.py:899: in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" /usr/lib/python3/site-packages/requests/models.py:816: in generate yield from self.raw.stream(chunk_size, decode_content=True) /usr/lib/python3/site-packages/urllib3/response.py:940: in stream data = self.read(amt=amt, decode_content=decode_content) /usr/lib/python3/site-packages/urllib3/response.py:911: in read data = self._raw_read(amt) /usr/lib/python3/site-packages/urllib3/response.py:813: in _raw_read with self._error_catcher(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. raise ProtocolError(f"Connection broken: {e!r}", e) from e # If no exception is thrown, we should avoid cleaning up # unnecessarily. clean_exit = True finally: # If we didn't terminate cleanly, we need to throw away our # connection. if not clean_exit: # The response may not be closed but we're not going to use it # anymore so close it now to ensure that the connection is # released back to the pool. if self._original_response: > self._original_response.close() E AttributeError: 'MockHTTPResponse' object has no attribute 'close' /usr/lib/python3/site-packages/urllib3/response.py:740: AttributeError _____________ TestBasedSession.test_prepared_request_override_base _____________ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: > yield /usr/lib/python3/site-packages/urllib3/response.py:710: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , amt = 10240 def _raw_read( self, amt: int | None = None, ) -> bytes: """ Reads `amt` of bytes from the socket. """ if self._fp is None: return None # type: ignore[return-value] fp_closed = getattr(self._fp, "closed", False) with self._error_catcher(): data = self._fp_read(amt) if not fp_closed else b"" if amt is not None and amt != 0 and not data: # Platform-specific: Buggy versions of Python. # Close the connection when no data is returned # # This is redundant to what httplib/http.client _should_ # already do. However, versions of python released before # December 15, 2012 (http://bugs.python.org/issue16298) do # not properly close the connection in all cases. There is # no harm in redundantly calling close. self._fp.close() if ( self.enforce_content_length and self.length_remaining is not None and self.length_remaining != 0 ): # This is an edge case that httplib failed to cover due # to concerns of backward compatibility. We're # addressing it here to make sure IncompleteRead is # raised during streaming, so all calls with incorrect # Content-Length are caught. > raise IncompleteRead(self._fp_bytes_read, self.length_remaining) E urllib3.exceptions.IncompleteRead: IncompleteRead(234 bytes read, 5 more expected) /usr/lib/python3/site-packages/urllib3/response.py:835: IncompleteRead The above exception was the direct cause of the following exception: self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. > raise ProtocolError(f"Connection broken: {e!r}", e) from e E urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(234 bytes read, 5 more expected)', IncompleteRead(234 bytes read, 5 more expected)) /usr/lib/python3/site-packages/urllib3/response.py:727: ProtocolError During handling of the above exception, another exception occurred: self = def test_prepared_request_override_base(self): session = sessions.BaseUrlSession('https://www.google.com') request = Request(method="GET", url="https://httpbin.org/get") prepared_request = session.prepare_request(request) recorder = get_betamax(session) with recorder.use_cassette('simple_get_request'): > response = session.send(prepared_request) tests/test_sessions.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:747: in send r.content /usr/lib/python3/site-packages/requests/models.py:899: in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" /usr/lib/python3/site-packages/requests/models.py:816: in generate yield from self.raw.stream(chunk_size, decode_content=True) /usr/lib/python3/site-packages/urllib3/response.py:940: in stream data = self.read(amt=amt, decode_content=decode_content) /usr/lib/python3/site-packages/urllib3/response.py:911: in read data = self._raw_read(amt) /usr/lib/python3/site-packages/urllib3/response.py:813: in _raw_read with self._error_catcher(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. raise ProtocolError(f"Connection broken: {e!r}", e) from e # If no exception is thrown, we should avoid cleaning up # unnecessarily. clean_exit = True finally: # If we didn't terminate cleanly, we need to throw away our # connection. if not clean_exit: # The response may not be closed but we're not going to use it # anymore so close it now to ensure that the connection is # released back to the pool. if self._original_response: > self._original_response.close() E AttributeError: 'MockHTTPResponse' object has no attribute 'close' /usr/lib/python3/site-packages/urllib3/response.py:740: AttributeError _______________ TestBasedSession.test_prepared_request_with_base _______________ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: > yield /usr/lib/python3/site-packages/urllib3/response.py:710: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , amt = 10240 def _raw_read( self, amt: int | None = None, ) -> bytes: """ Reads `amt` of bytes from the socket. """ if self._fp is None: return None # type: ignore[return-value] fp_closed = getattr(self._fp, "closed", False) with self._error_catcher(): data = self._fp_read(amt) if not fp_closed else b"" if amt is not None and amt != 0 and not data: # Platform-specific: Buggy versions of Python. # Close the connection when no data is returned # # This is redundant to what httplib/http.client _should_ # already do. However, versions of python released before # December 15, 2012 (http://bugs.python.org/issue16298) do # not properly close the connection in all cases. There is # no harm in redundantly calling close. self._fp.close() if ( self.enforce_content_length and self.length_remaining is not None and self.length_remaining != 0 ): # This is an edge case that httplib failed to cover due # to concerns of backward compatibility. We're # addressing it here to make sure IncompleteRead is # raised during streaming, so all calls with incorrect # Content-Length are caught. > raise IncompleteRead(self._fp_bytes_read, self.length_remaining) E urllib3.exceptions.IncompleteRead: IncompleteRead(234 bytes read, 5 more expected) /usr/lib/python3/site-packages/urllib3/response.py:835: IncompleteRead The above exception was the direct cause of the following exception: self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. > raise ProtocolError(f"Connection broken: {e!r}", e) from e E urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(234 bytes read, 5 more expected)', IncompleteRead(234 bytes read, 5 more expected)) /usr/lib/python3/site-packages/urllib3/response.py:727: ProtocolError During handling of the above exception, another exception occurred: self = def test_prepared_request_with_base(self): session = sessions.BaseUrlSession('https://httpbin.org') request = Request(method="GET", url="/get") prepared_request = session.prepare_request(request) recorder = get_betamax(session) with recorder.use_cassette('simple_get_request'): > response = session.send(prepared_request) tests/test_sessions.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:747: in send r.content /usr/lib/python3/site-packages/requests/models.py:899: in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" /usr/lib/python3/site-packages/requests/models.py:816: in generate yield from self.raw.stream(chunk_size, decode_content=True) /usr/lib/python3/site-packages/urllib3/response.py:940: in stream data = self.read(amt=amt, decode_content=decode_content) /usr/lib/python3/site-packages/urllib3/response.py:911: in read data = self._raw_read(amt) /usr/lib/python3/site-packages/urllib3/response.py:813: in _raw_read with self._error_catcher(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. raise ProtocolError(f"Connection broken: {e!r}", e) from e # If no exception is thrown, we should avoid cleaning up # unnecessarily. clean_exit = True finally: # If we didn't terminate cleanly, we need to throw away our # connection. if not clean_exit: # The response may not be closed but we're not going to use it # anymore so close it now to ensure that the connection is # released back to the pool. if self._original_response: > self._original_response.close() E AttributeError: 'MockHTTPResponse' object has no attribute 'close' /usr/lib/python3/site-packages/urllib3/response.py:740: AttributeError _________________ TestBasedSession.test_request_override_base __________________ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: > yield /usr/lib/python3/site-packages/urllib3/response.py:710: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , amt = 10240 def _raw_read( self, amt: int | None = None, ) -> bytes: """ Reads `amt` of bytes from the socket. """ if self._fp is None: return None # type: ignore[return-value] fp_closed = getattr(self._fp, "closed", False) with self._error_catcher(): data = self._fp_read(amt) if not fp_closed else b"" if amt is not None and amt != 0 and not data: # Platform-specific: Buggy versions of Python. # Close the connection when no data is returned # # This is redundant to what httplib/http.client _should_ # already do. However, versions of python released before # December 15, 2012 (http://bugs.python.org/issue16298) do # not properly close the connection in all cases. There is # no harm in redundantly calling close. self._fp.close() if ( self.enforce_content_length and self.length_remaining is not None and self.length_remaining != 0 ): # This is an edge case that httplib failed to cover due # to concerns of backward compatibility. We're # addressing it here to make sure IncompleteRead is # raised during streaming, so all calls with incorrect # Content-Length are caught. > raise IncompleteRead(self._fp_bytes_read, self.length_remaining) E urllib3.exceptions.IncompleteRead: IncompleteRead(234 bytes read, 5 more expected) /usr/lib/python3/site-packages/urllib3/response.py:835: IncompleteRead The above exception was the direct cause of the following exception: self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. > raise ProtocolError(f"Connection broken: {e!r}", e) from e E urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(234 bytes read, 5 more expected)', IncompleteRead(234 bytes read, 5 more expected)) /usr/lib/python3/site-packages/urllib3/response.py:727: ProtocolError During handling of the above exception, another exception occurred: self = def test_request_override_base(self): session = sessions.BaseUrlSession('https://www.google.com') recorder = get_betamax(session) with recorder.use_cassette('simple_get_request'): > response = session.get('https://httpbin.org/get') tests/test_sessions.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:602: in get return self.request("GET", url, **kwargs) requests_toolbelt/sessions.py:76: in request return super(BaseUrlSession, self).request( /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:747: in send r.content /usr/lib/python3/site-packages/requests/models.py:899: in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" /usr/lib/python3/site-packages/requests/models.py:816: in generate yield from self.raw.stream(chunk_size, decode_content=True) /usr/lib/python3/site-packages/urllib3/response.py:940: in stream data = self.read(amt=amt, decode_content=decode_content) /usr/lib/python3/site-packages/urllib3/response.py:911: in read data = self._raw_read(amt) /usr/lib/python3/site-packages/urllib3/response.py:813: in _raw_read with self._error_catcher(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. raise ProtocolError(f"Connection broken: {e!r}", e) from e # If no exception is thrown, we should avoid cleaning up # unnecessarily. clean_exit = True finally: # If we didn't terminate cleanly, we need to throw away our # connection. if not clean_exit: # The response may not be closed but we're not going to use it # anymore so close it now to ensure that the connection is # released back to the pool. if self._original_response: > self._original_response.close() E AttributeError: 'MockHTTPResponse' object has no attribute 'close' /usr/lib/python3/site-packages/urllib3/response.py:740: AttributeError ___________________ TestBasedSession.test_request_with_base ____________________ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: > yield /usr/lib/python3/site-packages/urllib3/response.py:710: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , amt = 10240 def _raw_read( self, amt: int | None = None, ) -> bytes: """ Reads `amt` of bytes from the socket. """ if self._fp is None: return None # type: ignore[return-value] fp_closed = getattr(self._fp, "closed", False) with self._error_catcher(): data = self._fp_read(amt) if not fp_closed else b"" if amt is not None and amt != 0 and not data: # Platform-specific: Buggy versions of Python. # Close the connection when no data is returned # # This is redundant to what httplib/http.client _should_ # already do. However, versions of python released before # December 15, 2012 (http://bugs.python.org/issue16298) do # not properly close the connection in all cases. There is # no harm in redundantly calling close. self._fp.close() if ( self.enforce_content_length and self.length_remaining is not None and self.length_remaining != 0 ): # This is an edge case that httplib failed to cover due # to concerns of backward compatibility. We're # addressing it here to make sure IncompleteRead is # raised during streaming, so all calls with incorrect # Content-Length are caught. > raise IncompleteRead(self._fp_bytes_read, self.length_remaining) E urllib3.exceptions.IncompleteRead: IncompleteRead(234 bytes read, 5 more expected) /usr/lib/python3/site-packages/urllib3/response.py:835: IncompleteRead The above exception was the direct cause of the following exception: self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. > raise ProtocolError(f"Connection broken: {e!r}", e) from e E urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(234 bytes read, 5 more expected)', IncompleteRead(234 bytes read, 5 more expected)) /usr/lib/python3/site-packages/urllib3/response.py:727: ProtocolError During handling of the above exception, another exception occurred: self = def test_request_with_base(self): session = sessions.BaseUrlSession('https://httpbin.org/') recorder = get_betamax(session) with recorder.use_cassette('simple_get_request'): > response = session.get('/get') tests/test_sessions.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/requests/sessions.py:602: in get return self.request("GET", url, **kwargs) requests_toolbelt/sessions.py:76: in request return super(BaseUrlSession, self).request( /usr/lib/python3/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3/site-packages/requests/sessions.py:747: in send r.content /usr/lib/python3/site-packages/requests/models.py:899: in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" /usr/lib/python3/site-packages/requests/models.py:816: in generate yield from self.raw.stream(chunk_size, decode_content=True) /usr/lib/python3/site-packages/urllib3/response.py:940: in stream data = self.read(amt=amt, decode_content=decode_content) /usr/lib/python3/site-packages/urllib3/response.py:911: in read data = self._raw_read(amt) /usr/lib/python3/site-packages/urllib3/response.py:813: in _raw_read with self._error_catcher(): /usr/lib64/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = @contextmanager def _error_catcher(self) -> typing.Generator[None, None, None]: """ Catch low-level python exceptions, instead re-raising urllib3 variants, so that low-level exceptions are not leaked in the high-level api. On exit, release the connection back to the pool. """ clean_exit = False try: try: yield except SocketTimeout as e: # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but # there is yet no clean way to get at it from this context. raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except BaseSSLError as e: # FIXME: Is there a better way to differentiate between SSLErrors? if "read operation timed out" not in str(e): # SSL errors related to framing/MAC get wrapped and reraised here raise SSLError(e) from e raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] except (HTTPException, OSError) as e: # This includes IncompleteRead. raise ProtocolError(f"Connection broken: {e!r}", e) from e # If no exception is thrown, we should avoid cleaning up # unnecessarily. clean_exit = True finally: # If we didn't terminate cleanly, we need to throw away our # connection. if not clean_exit: # The response may not be closed but we're not going to use it # anymore so close it now to ensure that the connection is # released back to the pool. if self._original_response: > self._original_response.close() E AttributeError: 'MockHTTPResponse' object has no attribute 'close' /usr/lib/python3/site-packages/urllib3/response.py:740: AttributeError =========================== short test summary info ============================ FAILED tests/test_dump.py::TestDumpRealResponses::test_dump_response - Attrib... FAILED tests/test_dump.py::TestDumpRealResponses::test_dump_all - AttributeEr... FAILED tests/test_sessions.py::TestBasedSession::test_prepared_request_override_base FAILED tests/test_sessions.py::TestBasedSession::test_prepared_request_with_base FAILED tests/test_sessions.py::TestBasedSession::test_request_override_base FAILED tests/test_sessions.py::TestBasedSession::test_request_with_base - Att... 6 failed, 158 passed, 5 skipped in 1.29s ERROR: InvocationError for command /usr/src/RPM/BUILD/python3-module-requests_toolbelt-1.0.0/.tox/py3/bin/pytest -W error::DeprecationWarning (exited with code 1) py3 finish: run-test after 1.55 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-requests_toolbelt-1.0.0/.tox/.tmp/package/1/requests_toolbelt-1.0.0-py2.py3-none-any.whl error: Bad exit status from /usr/src/tmp/rpm-tmp.44326 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.44326 (%check) Command exited with non-zero status 1 3.24user 0.89system 0:04.15elapsed 99%CPU (0avgtext+0avgdata 446500maxresident)k 0inputs+0outputs (0major+168155minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-requests_toolbelt-1.0.0-alt1.src.rpm' failed. Command exited with non-zero status 1 3.60user 1.76system 0:13.59elapsed 39%CPU (0avgtext+0avgdata 127036maxresident)k 176inputs+0outputs (0major+319510minor)pagefaults 0swaps