<86>Jun 17 04:59:49 userdel[4154663]: delete user 'rooter' <86>Jun 17 04:59:49 userdel[4154663]: removed group 'rooter' owned by 'rooter' <86>Jun 17 04:59:49 userdel[4154663]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 17 04:59:49 groupadd[4154734]: group added to /etc/group: name=rooter, GID=1802 <86>Jun 17 04:59:49 groupadd[4154734]: group added to /etc/gshadow: name=rooter <86>Jun 17 04:59:49 groupadd[4154734]: new group: name=rooter, GID=1802 <86>Jun 17 04:59:49 useradd[4154768]: new user: name=rooter, UID=1802, GID=1802, home=/root, shell=/bin/bash, from=none <86>Jun 17 04:59:49 userdel[4154856]: delete user 'builder' <86>Jun 17 04:59:49 userdel[4154856]: removed group 'builder' owned by 'builder' <86>Jun 17 04:59:49 userdel[4154856]: removed shadow group 'builder' owned by 'builder' <86>Jun 17 04:59:49 groupadd[4154949]: group added to /etc/group: name=builder, GID=1803 <86>Jun 17 04:59:49 groupadd[4154949]: group added to /etc/gshadow: name=builder <86>Jun 17 04:59:49 groupadd[4154949]: new group: name=builder, GID=1803 <86>Jun 17 04:59:49 useradd[4154997]: new user: name=builder, UID=1803, GID=1803, home=/usr/src, shell=/bin/bash, from=none <13>Jun 17 04:59:50 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Jun 17 04:59:50 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>Jun 17 04:59:50 rpmi: libexpat-2.5.0-alt1 sisyphus+309227.100.1.1 1667075766 installed <13>Jun 17 04:59:50 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Jun 17 04:59:50 rpmi: libp11-kit-0.24.1-alt1 sisyphus+293720.100.1.1 1642535281 installed <13>Jun 17 04:59:50 rpmi: libtasn1-4.19.0-alt1 sisyphus+305700.100.1.1 1661359628 installed <13>Jun 17 04:59:50 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jun 17 04:59:50 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jun 17 04:59:50 rpmi: ca-certificates-2022.12.14-alt1 sisyphus+311754.200.1.1 1671046143 installed <13>Jun 17 04:59:50 rpmi: ca-trust-0.1.4-alt1 sisyphus+308690.100.1.1 1666182992 installed <13>Jun 17 04:59:50 rpmi: p11-kit-trust-0.24.1-alt1 sisyphus+293720.100.1.1 1642535281 installed <13>Jun 17 04:59:50 rpmi: libcrypto1.1-1.1.1u-alt1 sisyphus+322200.100.1.1 1685474790 installed <13>Jun 17 04:59:50 rpmi: libssl1.1-1.1.1u-alt1 sisyphus+322200.100.1.1 1685474790 installed <13>Jun 17 04:59:50 rpmi: python3-3.11.0-alt1 sisyphus+311250.40.175.1 1685626775 installed <13>Jun 17 04:59:51 rpmi: python3-base-3.11.0-alt1 sisyphus+311250.40.175.1 1685626775 installed <13>Jun 17 04:59:51 rpmi: tests-for-installed-python3-pkgs-0.1.22-alt1 sisyphus+319076.100.3.1 1682536051 installed <13>Jun 17 04:59:51 rpmi: rpm-build-python3-0.1.22-alt1 sisyphus+319076.100.3.1 1682536051 installed <13>Jun 17 04:59:53 rpmi: python3-module-packaging-23.1-alt1 sisyphus+318906.100.2.1 1683015285 installed <13>Jun 17 04:59:53 rpmi: python3-module-typing_extensions-4.6.3-alt1 sisyphus+322816.100.1.1 1686499213 installed <13>Jun 17 04:59:53 rpmi: python3-module-system-seed-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683380 installed <13>Jun 17 04:59:53 rpmi: python3-module-pluggy-1.0.0-alt1 sisyphus+284853.100.1.1 1631109373 installed <13>Jun 17 04:59:53 rpmi: python3-module-click-8.1.3-alt2 sisyphus+318894.300.3.1 1682420471 installed <13>Jun 17 04:59:53 rpmi: python3-module-platformdirs-3.5.3-alt1 sisyphus+322904.100.2.1 1686751646 installed <13>Jun 17 04:59:53 rpmi: python3-module-natsort-8.3.1-alt1 sisyphus+316088.100.1.1 1677742225 installed <13>Jun 17 04:59:53 rpmi: python3-module-domdf-python-tools-3.4.0-alt1 sisyphus+307601.40.2.1 1664480935 installed <13>Jun 17 04:59:53 rpmi: python3-module-filelock-3.12.2-alt1 sisyphus+322904.200.2.1 1686751677 installed <13>Jun 17 04:59:53 rpmi: python3-module-toml-0.10.2-alt3 sisyphus+305000.3200.2.1 1660575655 installed <13>Jun 17 04:59:53 rpmi: python3-module-dom-toml-0.6.0-alt2 sisyphus+307721.100.1.1 1664640335 installed <13>Jun 17 04:59:53 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jun 17 04:59:53 rpmi: python3-module-pytest-7.3.2-alt1 sisyphus+322897.100.1.1 1686653468 installed <13>Jun 17 04:59:53 rpmi: python3-module-six-1.16.0-alt1 sisyphus+283489.100.2.1 1629527308 installed <13>Jun 17 04:59:53 rpmi: python3-module-idna-3.4-alt1 sisyphus+307942.100.1.1 1665051373 installed <13>Jun 17 04:59:53 rpmi: python3-module-apeye-core-1.1.1-alt1 sisyphus+317671.200.1.1 1680071302 installed <13>Jun 17 04:59:53 rpmi: python3-module-pytest-datadir-1.3.1-alt1 sisyphus+307604.100.1.1 1664480844 installed <13>Jun 17 04:59:53 rpmi: python3-module-sdjson-0.4.0-alt1 sisyphus+307661.100.1.1 1664563997 installed <13>Jun 17 04:59:54 rpmi: python3-module-pip-wheel-23.1.2-alt1 sisyphus+319471.100.2.1 1683105539 installed <13>Jun 17 04:59:54 rpmi: python3-module-setuptools-wheel-1:67.8.0-alt1 sisyphus+321626.100.2.1 1684831109 installed <13>Jun 17 04:59:54 rpmi: python3-module-wheel-wheel-0.40.0-alt1 sisyphus+318890.200.2.1 1682002149 installed <13>Jun 17 04:59:54 rpmi: python3-module-system-seed-wheels-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683380 installed <13>Jun 17 04:59:54 rpmi: python3-module-deprecation-2.1.0-alt2 sisyphus+307624.100.1.1 1664516496 installed <13>Jun 17 04:59:54 rpmi: python3-module-deprecation-alias-0.3.1-alt2 sisyphus+307667.100.1.1 1664571561 installed <13>Jun 17 04:59:54 rpmi: python3-module-tomli-2.0.1-alt2 sisyphus+305000.3300.2.1 1660575675 installed <13>Jun 17 04:59:54 rpmi: python3-module-editables-0.3-alt1 sisyphus+305000.1000.2.1 1660575177 installed <13>Jun 17 04:59:54 rpmi: python3-module-distlib-0.3.6-alt1 sisyphus+306796.100.1.1 1663166230 installed <13>Jun 17 04:59:54 rpmi: python3-module-virtualenv-20.23.0-alt1 sisyphus+319889.500.1.1 1683216068 installed <13>Jun 17 04:59:54 rpmi: python3-module-railroad-diagrams-1.1.1-alt1 sisyphus+294587.100.1.1 1643813088 installed <13>Jun 17 04:59:54 rpmi: python3-module-markupsafe-1:2.1.2-alt1 sisyphus+311250.14740.175.1 1685632983 installed <13>Jun 17 04:59:54 rpmi: python3-module-jinja2-3.1.2-alt1 sisyphus+303664.100.1.1 1657809843 installed <13>Jun 17 04:59:54 rpmi: python3-module-pyparsing-3.0.9-alt2 sisyphus+309123.700.4.1 1668095436 installed <13>Jun 17 04:59:54 rpmi: python3-module-mistletoe-0.9.0-alt1 sisyphus+307613.100.1.1 1664482500 installed <13>Jun 17 04:59:54 rpmi: python3-module-braceexpand-0.1.7-alt1 sisyphus+307615.100.1.1 1664485964 installed <13>Jun 17 04:59:54 rpmi: python3-module-attrs-23.1.0-alt1 sisyphus+321859.100.1.1 1685027490 installed <13>Jun 17 04:59:54 rpmi: python3-module-apipkg-3.0.1-alt2 sisyphus+323078.100.1.1 1686823905 installed <13>Jun 17 04:59:54 rpmi: python3-module-py-1.11.0-alt1 sisyphus+295927.100.2.1 1646050822 installed <13>Jun 17 04:59:54 rpmi: python3-module-tox-3.27.1-alt1 sisyphus+309865.500.3.1 1668591286 installed <13>Jun 17 04:59:54 rpmi: python3-module-ruamel-yaml-0.17.21-alt2 sisyphus+304458.100.1.1 1659098596 installed <13>Jun 17 04:59:54 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jun 17 04:59:54 rpmi: python3-module-cffi-1.15.1-alt2 sisyphus+311250.35200.176.1 1685739676 installed <13>Jun 17 04:59:54 rpmi: python3-module-cryptography-40.0.2-alt1 sisyphus+311250.41604.176.1 1685741792 installed <13>Jun 17 04:59:54 rpmi: python3-module-openssl-23.1.1-alt2 sisyphus+319053.1700.6.1 1682668601 installed <13>Jun 17 04:59:54 rpmi: python3-module-urllib3-2:1.26.14-alt2 sisyphus+318352.100.1.1 1681194106 installed <13>Jun 17 04:59:54 rpmi: python3-module-charset-normalizer-2.1.1-alt1 sisyphus+311047.100.1.1 1669992940 installed <13>Jun 17 04:59:54 rpmi: python3-module-requests-2.31.0-alt1 sisyphus+321663.100.2.1 1684917021 installed <13>Jun 17 04:59:54 rpmi: python3-module-msgpack-1.0.5-alt1 sisyphus+311250.32240.176.1 1685738326 installed <13>Jun 17 04:59:54 rpmi: python3-module-cachecontrol-0.13.1-alt1 sisyphus+322841.100.1.1 1686551721 installed <13>Jun 17 04:59:54 rpmi: libyaml2-0.2.5-alt1 sisyphus+278391.100.1.1 1626094932 installed <13>Jun 17 04:59:54 rpmi: python3-module-yaml-6.0-alt2 sisyphus+311250.34240.176.1 1685738942 installed <13>Jun 17 04:59:54 rpmi: python3-module-pytest-regressions-2.4.2-alt1 sisyphus+318894.640.3.1 1682420658 installed <13>Jun 17 04:59:54 rpmi: python3-module-coincidence-0.6.5-alt1 sisyphus+318894.700.3.1 1682420679 installed <13>Jun 17 04:59:54 rpmi: python3-module-consolekit-1.4.1-alt2 sisyphus+307725.100.1.1 1664645496 installed <13>Jun 17 04:59:54 rpmi: python3-module-handy-archives-0.1.4-alt2 sisyphus+307727.100.1.1 1664646789 installed <13>Jun 17 04:59:54 rpmi: python3-module-dist-meta-0.6.0-alt1 sisyphus+307614.400.2.1 1664485006 installed <13>Jun 17 04:59:54 rpmi: python3-module-apeye-1.3.0-alt1 sisyphus+317670.100.1.1 1680069308 installed <13>Jun 17 04:59:54 rpmi: python3-module-shippinglabel-1.4.1-alt1 sisyphus+317670.300.1.1 1680069347 installed <13>Jun 17 04:59:54 rpmi: python3-module-pyproject-parser-0.7.0-alt1 sisyphus+307614.100.1.1 1664483929 installed <13>Jun 17 04:59:54 rpmi: libsqlite3-3.42.0-alt1 sisyphus+321513.100.1.1 1684603061 installed <13>Jun 17 04:59:54 rpmi: python3-modules-sqlite3-3.11.0-alt1 sisyphus+311250.40.175.1 1685626775 installed <13>Jun 17 04:59:54 rpmi: python3-module-coverage-6.5.0-alt1 sisyphus+311250.11540.175.1 1685632238 installed <13>Jun 17 04:59:54 rpmi: python3-module-coverage-pyver-pragma-0.3.1-alt1 sisyphus+307622.100.1.1 1664513293 installed <13>Jun 17 04:59:54 rpmi: python3-module-pytest-cov-4.1.0-alt1 sisyphus+321826.100.1.1 1685009558 installed <13>Jun 17 04:59:54 rpmi: python3-module-whey-0.0.23-alt1 sisyphus+307614.700.2.1 1664485063 installed <13>Jun 17 04:59:54 rpmi: python3-module-tox-envlist-0.3.0-alt1 sisyphus+307615.300.1.1 1664486003 installed <13>Jun 17 04:59:54 rpmi: python3-module-pytest-timeout-2.1.0-alt1 sisyphus+304013.1200.3.1 1658337881 installed <13>Jun 17 04:59:54 rpmi: python3-module-pytz-1:2022.6-alt1 sisyphus+311396.200.1.1 1670517427 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-sdjson-0.4.0-alt1.nosrc.rpm (w1.gzdio) <13>Jun 17 04:59:56 rpmi: python3-module-tox-no-deps-0.2.0-alt1 sisyphus+301745.200.2.1 1655211304 installed <13>Jun 17 04:59:56 rpmi: python3-module-tox-console-scripts-0.3.2-alt1 sisyphus+301745.100.2.1 1655211258 installed <13>Jun 17 04:59:56 rpmi: python3-module-pyproject-installer-0.5.1-alt1 sisyphus+322305.100.2.1 1686212184 installed Installing python3-module-sdjson-0.4.0-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.52913 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-sdjson-0.4.0 + echo 'Source #0 (python3-module-sdjson-0.4.0.tar):' Source #0 (python3-module-sdjson-0.4.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-sdjson-0.4.0.tar + cd python3-module-sdjson-0.4.0 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.52913 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-sdjson-0.4.0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: whey INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} Copying /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/sdjson/__init__.pyi -> sdjson/__init__.pyi Copying /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/sdjson/__init__.py -> sdjson/__init__.py Copying /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/sdjson/py.typed -> sdjson/py.typed Writing sdjson-0.4.0.dist-info/LICENSE Writing sdjson-0.4.0.dist-info/entry_points.txt Writing sdjson-0.4.0.dist-info/METADATA Writing sdjson-0.4.0.dist-info/WHEEL Writing sdjson-0.4.0.dist-info/RECORD Wheel created at /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/dist/sdjson-0.4.0-py3-none-any.whl INFO : pyproject_installer.build_cmd._build : Built wheel: sdjson-0.4.0-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.5522 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-sdjson-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-sdjson-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-sdjson-0.4.0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-sdjson-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: sdjson-0.4.0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-sdjson-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-sdjson-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: sdjson-0.4.0.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: sdjson-0.4.0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: sdjson-0.4.0.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-sdjson-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-sdjson-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-sdjson-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-sdjson-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-sdjson-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-sdjson-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-sdjson-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-sdjson-buildroot/usr/lib/python3/site-packages/sdjson/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-sdjson-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-sdjson-buildroot/usr/lib/python3/site-packages/sdjson/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-sdjson-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-sdjson-buildroot/usr/lib/python3/site-packages/sdjson/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/sdjson/__pycache__/__init__.cpython-311.opt-1.pyc' => './usr/lib/python3/site-packages/sdjson/__pycache__/__init__.cpython-311.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.5522 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-sdjson-0.4.0 ++ cat ./dist/.wheeltracker + _tox_wheel=sdjson-0.4.0-py3-none-any.whl + export NO_INTERNET=YES + NO_INTERNET=YES + export PIP_NO_BUILD_ISOLATION=NO + PIP_NO_BUILD_ISOLATION=NO + export PIP_NO_INDEX=YES + PIP_NO_INDEX=YES + export TOXENV=py3 + TOXENV=py3 + export TOX_TESTENV_PASSENV=NO_INTERNET + TOX_TESTENV_PASSENV=NO_INTERNET + /usr/bin/tox.py3 --sitepackages -vvr -s false --no-deps --console-scripts --installpkg=./dist/sdjson-0.4.0-py3-none-any.whl using tox.ini: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tox.ini (pid 14623) could not satisfy requires PackageNotFoundError('pip') using tox-3.27.1 from /usr/lib/python3/site-packages/tox/__init__.py (pid 14623) /usr/bin/python3 (/usr/bin/python3) is {'executable': '/usr/bin/python3', 'implementation': 'CPython', 'version_info': [3, 11, 0, 'final', 0], 'version': '3.11.0 (main, Dec 18 2022, 16:07:18) [GCC 12.2.1 20230424 (ALT Sisyphus 12.2.1-alt2)]', 'is_64': False, 'sysplatform': 'linux', 'os_sep': '/', 'extra_version_info': None} .tox uses /usr/bin/python3 .tox start: getenv /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox .tox cannot reuse: -r flag .tox create: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [15636] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox$ /usr/bin/python3 -m virtualenv --system-site-packages --no-download --python /usr/bin/python3 .tox created virtual environment CPython3.11.0.final.0-32 in 259ms creator CPython3Posix(dest=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox, 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.1.2, setuptools==67.8.0, wheel==0.40.0 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator .tox installdeps: pip>=21, tox-envlist>=0.2.1, tox >= 3.27.1 setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [18073] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin/python -m pip install 'pip>=21' 'tox-envlist>=0.2.1' 'tox >= 3.27.1' Requirement already satisfied: pip>=21 in ./.tox/.tox/lib/python3/site-packages (23.1.2) Requirement already satisfied: tox-envlist>=0.2.1 in /usr/lib/python3/site-packages (0.3.0) Requirement already satisfied: tox>=3.27.1 in /usr/lib/python3/site-packages (3.27.1) Requirement already satisfied: braceexpand>=0.1.6 in /usr/lib/python3/site-packages (from tox-envlist>=0.2.1) (0.1.7) Requirement already satisfied: domdf-python-tools>=2.8.1 in /usr/lib/python3/site-packages (from tox-envlist>=0.2.1) (3.4.0) Requirement already satisfied: pluggy>=0.13.1 in /usr/lib/python3/site-packages (from tox-envlist>=0.2.1) (1.0.0) Requirement already satisfied: filelock>=3.0.0 in /usr/lib/python3/site-packages (from tox>=3.27.1) (3.12.2) Requirement already satisfied: packaging>=14 in /usr/lib/python3/site-packages (from tox>=3.27.1) (23.1) Requirement already satisfied: py>=1.4.17 in /usr/lib/python3/site-packages (from tox>=3.27.1) (1.11.0) Requirement already satisfied: six>=1.14.0 in /usr/lib/python3/site-packages (from tox>=3.27.1) (1.16.0) Requirement already satisfied: virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 in /usr/lib/python3/site-packages (from tox>=3.27.1) (20.23.0) Requirement already satisfied: natsort>=7.0.1 in /usr/lib/python3/site-packages (from domdf-python-tools>=2.8.1->tox-envlist>=0.2.1) (8.3.1) Requirement already satisfied: typing-extensions>=3.7.4.1 in /usr/lib/python3/site-packages (from domdf-python-tools>=2.8.1->tox-envlist>=0.2.1) (4.6.3) Requirement already satisfied: distlib<1,>=0.3.6 in /usr/lib/python3/site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox>=3.27.1) (0.3.6) Requirement already satisfied: platformdirs<4,>=3.2 in /usr/lib/python3/site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox>=3.27.1) (3.5.3) setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [28559] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin/python /usr/lib/python3/site-packages/tox_console_scripts/helper/console_scripts.py Generating script whey into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script coverage into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script coverage-3.11 into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script coverage3 into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script check-pyproject into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script pyproject-fmt into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script pyproject-info into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script pyproject-parser into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script doesitcache into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script normalizer into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script tox into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script tox-quickstart into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script mistletoe into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script virtualenv into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script py.test into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script pytest into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin Generating script natsort into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin .tox finish: getenv /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox after 2.16 seconds .tox start: finishvenv write config to /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/.tox-config1 as 'b6e8463ab01baa055d27dda6546b2b94d02cd913626347ab4ed8a2db05b7a3eb /usr/bin/python3\n3.27.1 1 0 0\n00000000000000000000000000000000 pip>=21\n00000000000000000000000000000000 tox-envlist>=0.2.1\n00000000000000000000000000000000 tox >= 3.27.1' .tox finish: finishvenv after 0.01 seconds .tox start: provision [28971] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin/python -m tox --sitepackages -vvr -s false --no-deps --console-scripts --installpkg=./dist/sdjson-0.4.0-py3-none-any.whl using tox.ini: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tox.ini (pid 28971) no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'py36' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'py37' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'py38' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'py39' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'py310' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'pypy36' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'pypy37' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'pypy38' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'pypy39' no-deps plugin: deps: '[mypy==0.942, -r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt, -r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/stubs.txt]' will be skipped for 'mypy' no-deps plugin: deps: '[build[virtualenv]>=0.3.1, check-wheel-contents>=0.1.0, twine>=3.2.0]' will be skipped for 'build' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/tests/requirements.txt]' will be skipped for 'py3' no-deps plugin: deps: '[-r/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/doc-source/requirements.txt]' will be skipped for 'docs' no-deps plugin: deps: '[flake8>=3.8.2, flake8-2020>=1.6.0, flake8-builtins>=1.5.3, flake8-docstrings>=1.5.0, flake8-dunder-all>=0.1.1, flake8-encodings>=0.1.0, flake8-github-actions>=0.1.0, flake8-noqa>=1.1.0, flake8-pyi>=20.10.0, flake8-pytest-style>=1.3.0, flake8-quotes>=3.3.0, flake8-slots>=0.1.0, flake8-sphinx-links>=0.0.4, flake8-strftime>=0.1.1, flake8-typing-imports>=1.10.0, git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git, git+https://github.com/domdfcoding/flake8-rst-docstrings.git, git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods, pydocstyle>=6.0.0, pygments>=2.7.1, importlib_metadata<4.5.0; python_version<'3.8']' will be skipped for 'lint' no-deps plugin: deps: '[pyupgrade-directories]' will be skipped for 'pyup' no-deps plugin: deps: '[coverage>=5, coverage_pyver_pragma>=0.2.1]' will be skipped for 'coverage' using tox-3.27.1 from /usr/lib/python3/site-packages/tox/__init__.py (pid 28971) using package '/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/dist/sdjson-0.4.0-py3-none-any.whl', skipping 'sdist' activity package .tox/.tmp/package/1/sdjson-0.4.0-py3-none-any.whl links to dist/sdjson-0.4.0-py3-none-any.whl (/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0) py3 uses /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin/python py3 start: getenv /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3 py3 cannot reuse: -r flag py3 create: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3 setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [30171] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin/python -m virtualenv --system-site-packages --no-download --python .tox/bin/python py3 created virtual environment CPython3.11.0.final.0-32 in 232ms creator CPython3Posix(dest=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.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.1.2, setuptools==67.8.0, wheel==0.40.0 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [33028] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin/python /usr/lib/python3/site-packages/tox_console_scripts/helper/console_scripts.py Generating script whey into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script coverage into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script coverage-3.11 into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script coverage3 into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script check-pyproject into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script pyproject-fmt into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script pyproject-info into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script pyproject-parser into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script doesitcache into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script normalizer into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script tox into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script tox-quickstart into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script mistletoe into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script virtualenv into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script py.test into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script pytest into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin Generating script natsort into /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin py3 finish: getenv /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3 after 0.49 seconds py3 start: installpkg /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tmp/package/1/sdjson-0.4.0-py3-none-any.whl py3 inst: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tmp/package/1/sdjson-0.4.0-py3-none-any.whl write config to /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/.tox-config1 as 'b6e8463ab01baa055d27dda6546b2b94d02cd913626347ab4ed8a2db05b7a3eb /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tox/bin/python\n3.27.1 1 0 0' setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [34104] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin/python -m pip install --exists-action w .tox/.tmp/package/1/sdjson-0.4.0-py3-none-any.whl Processing ./.tox/.tmp/package/1/sdjson-0.4.0-py3-none-any.whl Requirement already satisfied: domdf-python-tools>=2.5.2 in /usr/lib/python3/site-packages (from sdjson==0.4.0) (3.4.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/lib/python3/site-packages (from sdjson==0.4.0) (4.6.3) Requirement already satisfied: natsort>=7.0.1 in /usr/lib/python3/site-packages (from domdf-python-tools>=2.5.2->sdjson==0.4.0) (8.3.1) sdjson is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel. py3 finish: installpkg /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/.tmp/package/1/sdjson-0.4.0-py3-none-any.whl after 1.53 seconds py3 start: envreport setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [43605] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin/python -m pip freeze >.tox/py3/log/py3-0.log py3 finish: envreport after 0.45 seconds py3 installed: apeye==1.3.0,apeye-core==1.1.1,apipkg==3.0.1,attrs==23.1.0,braceexpand==0.1.7,CacheControl==0.13.1,cffi==1.15.1,charset-normalizer==2.1.1,click==8.1.3,coincidence==0.6.5,consolekit==1.4.1,coverage==6.5.0,coverage-pyver-pragma==0.3.1,cryptography==40.0.2,deprecation==2.1.0,deprecation-alias==0.3.1,dist-meta==0.6.0,distlib==0.3.6,dom_toml==0.6.0,domdf-python-tools==3.4.0,editables==0.3,filelock==3.12.2,handy-archives==0.1.4,idna==3.4,iniconfig==2.0.0,Jinja2==3.1.2,MarkupSafe==2.1.2,mistletoe==0.9.0,msgpack==1.0.5,natsort==8.3.1,packaging==23.1,platformdirs==3.5.3,pluggy==1.0.0,py==1.11.0,pycparser==2.21,pyOpenSSL==23.1.1,pyparsing==3.0.9,pyproject-installer==0.5.1,pyproject-parser==0.7.0,pytest==7.3.2,pytest-cov==4.1.0,pytest-datadir==1.3.1,pytest-regressions==2.4.2,pytest-timeout==2.1.0,pytz==2022.6,PyYAML==6.0,railroad-diagrams==1.1.1,requests==2.31.0,ruamel.yaml==0.17.21,sdjson==0.4.0,shippinglabel==1.4.1,six==1.16.0,toml==0.10.2,tomli==2.0.1,tox==3.27.1,tox-console-scripts==0.3.2,tox-envlist==0.3.0,tox-no-deps==0.2.0,typing_extensions==4.6.3,urllib3==1.26.14,virtualenv==20.23.0,whey==0.0.23 py3 start: run-test-pre py3 run-test-pre: PYTHONHASHSEED='2487380190' py3 finish: run-test-pre after 0.00 seconds py3 start: run-test py3 run-test: commands[0] | python --version setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [48586] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin/python --version Python 3.11.0 py3 run-test: commands[1] | python -m pytest --cov=sdjson -r aR tests/ setting PATH=/usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games [48597] /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0$ /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0/.tox/py3/bin/python -m pytest --cov=sdjson -r aR tests/ ============================= test session starts ============================== platform linux -- Python 3.11.0, pytest-7.3.2, pluggy-1.0.0 cachedir: .tox/py3/.pytest_cache Test session started at 05:00:03 rootdir: /usr/src/RPM/BUILD/python3-module-sdjson-0.4.0 configfile: tox.ini plugins: timeout-2.1.0, cov-4.1.0, regressions-2.4.2, datadir-1.3.1 timeout: 300.0s timeout method: signal timeout func_only: False collected 155 items tests/test_custom_class.py . [ 0%] tests/test_custom_encoders.py .............x [ 9%] tests/test_load.py ...........................xxx [ 29%] tests/test_multiple_files.py . [ 29%] tests/test_overloading.py . [ 30%] tests/test_protocols.py F [ 30%] tests/test_unregister.py F [ 31%] tests/stdlib_tests/test_decode.py ........... [ 38%] tests/stdlib_tests/test_default.py . [ 39%] tests/stdlib_tests/test_dump.py ....... [ 43%] tests/stdlib_tests/test_encode_basestring_ascii.py .. [ 45%] tests/stdlib_tests/test_enum.py ...... [ 49%] tests/stdlib_tests/test_fail.py ........................................ [ 74%] ........... [ 81%] tests/stdlib_tests/test_float.py .... [ 84%] tests/stdlib_tests/test_indent.py .. [ 85%] tests/stdlib_tests/test_passes.py ... [ 87%] tests/stdlib_tests/test_recursion.py ...... [ 91%] tests/stdlib_tests/test_separators.py .. [ 92%] tests/stdlib_tests/test_unicode.py ........F.. [100%] =================================== FAILURES =================================== ________________________________ test_protocols ________________________________ def test_protocols() -> None: class Integer: def __int__(self): return 42 class Float: def __float__(self): return 42.0 class Bytes: def __bytes__(self): return b"42" with pytest.raises(TypeError, match="Object of type '?Integer'? is not JSON serializable"): sdjson.dumps(Integer()) with pytest.raises(TypeError, match="Object of type '?Float'? is not JSON serializable"): sdjson.dumps(Float()) with pytest.raises(TypeError, match="Object of type '?Bytes'? is not JSON serializable"): sdjson.dumps(Bytes()) @sdjson.encoders.register(SupportsInt) def supports_int_encoder(obj): return int(obj) @sdjson.encoders.register(SupportsFloat) def supports_float_encoder(obj): return float(obj) @sdjson.encoders.register(SupportsBytes) def supports_bytes_encoder(obj): return bytes(obj) assert sdjson.dumps(Integer()) == "42" assert sdjson.dumps(Float()) == "42.0" # To prove the protocols don't take precedence assert sdjson.dumps(123) == "123" with pytest.raises(TypeError, match="Object of type '?bytes'? is not JSON serializable"): > sdjson.dumps(Bytes()) tests/test_protocols.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sdjson/__init__.py:323: in dumps return _default_encoder.encode(obj) sdjson/__init__.py:382: in encode return super().encode(o) /usr/lib/python3.11/json/encoder.py:200: in encode chunks = self.iterencode(o, _one_shot=True) sdjson/__init__.py:391: in iterencode return super().iterencode(o, _one_shot) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = o = .Bytes object at 0xf6248290> _one_shot = True def iterencode(self, o, _one_shot=False): """Encode the given object and yield each string representation as available. For example:: for chunk in JSONEncoder().iterencode(bigobject): mysocket.write(chunk) """ if self.check_circular: markers = {} else: markers = None if self.ensure_ascii: _encoder = encode_basestring_ascii else: _encoder = encode_basestring def floatstr(o, allow_nan=self.allow_nan, _repr=float.__repr__, _inf=INFINITY, _neginf=-INFINITY): # Check for specials. Note that this type of test is processor # and/or platform-specific, so do tests which don't depend on the # internals. if o != o: text = 'NaN' elif o == _inf: text = 'Infinity' elif o == _neginf: text = '-Infinity' else: return _repr(o) if not allow_nan: raise ValueError( "Out of range float values are not JSON compliant: " + repr(o)) return text if (_one_shot and c_make_encoder is not None and self.indent is None): _iterencode = c_make_encoder( markers, self.default, _encoder, self.indent, self.key_separator, self.item_separator, self.sort_keys, self.skipkeys, self.allow_nan) else: _iterencode = _make_iterencode( markers, self.default, _encoder, self.indent, floatstr, self.key_separator, self.item_separator, self.sort_keys, self.skipkeys, _one_shot) > return _iterencode(o, 0) E ValueError: Circular reference detected /usr/lib/python3.11/json/encoder.py:258: ValueError _______________________________ test_unregister ________________________________ cls = def dispatch(cls): """generic_func.dispatch(cls) -> Runs the dispatch algorithm to return the best available implementation for the given *cls* registered on *generic_func*. """ nonlocal cache_token if cache_token is not None: current_token = get_cache_token() if cache_token != current_token: dispatch_cache.clear() cache_token = current_token try: > impl = dispatch_cache[cls] /usr/lib/python3.11/functools.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , key = def __getitem__(self, key): > return self.data[ref(key)] E KeyError:  /usr/lib/python3.11/weakref.py:415: KeyError During handling of the above exception, another exception occurred: cls = def dispatch(cls): """generic_func.dispatch(cls) -> Runs the dispatch algorithm to return the best available implementation for the given *cls* registered on *generic_func*. """ nonlocal cache_token if cache_token is not None: current_token = get_cache_token() if cache_token != current_token: dispatch_cache.clear() cache_token = current_token try: impl = dispatch_cache[cls] except KeyError: try: > impl = registry[cls] E KeyError:  /usr/lib/python3.11/functools.py:835: KeyError During handling of the above exception, another exception occurred: def test_unregister() -> None: # Create and register a custom encoder for Decimal that turns it into a string @sdjson.encoders.register(Decimal) def encode_str(obj): return str(obj) # Test that we get the expected output from the first encoder assert sdjson.dumps(Decimal(1)) == '"1"' # Unregister that encoder sdjson.unregister_encoder(Decimal) # We should now get an error with pytest.raises(TypeError, match="Object of type [']*Decimal[']* is not JSON serializable") as e: > sdjson.dumps(Decimal(2)) tests/test_unregister.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sdjson/__init__.py:323: in dumps return _default_encoder.encode(obj) sdjson/__init__.py:382: in encode return super().encode(o) /usr/lib/python3.11/json/encoder.py:200: in encode chunks = self.iterencode(o, _one_shot=True) sdjson/__init__.py:391: in iterencode return super().iterencode(o, _one_shot) /usr/lib/python3.11/json/encoder.py:258: in iterencode return _iterencode(o, 0) sdjson/__init__.py:424: in default handler = encoders.dispatch(obj) sdjson/__init__.py:248: in dispatch handler = self._registry.dispatch(type(cls)) /usr/lib/python3.11/functools.py:837: in dispatch impl = _find_impl(cls, registry) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = registry = {: .supports_int_encoder at 0xf6292558>, : .supports_bytes_encoder at 0xf62926b8>} def _find_impl(cls, registry): """Returns the best matching implementation from *registry* for type *cls*. Where there is no registered implementation for a specific type, its method resolution order is used to find a more generic implementation. Note: if *registry* does not contain an implementation for the base *object* type, this function may return None. """ mro = _compose_mro(cls, registry.keys()) match = None for t in mro: if match is not None: # If *match* is an implicit ABC but there is another unrelated, # equally matching implicit ABC, refuse the temptation to guess. if (t in registry and t not in cls.__mro__ and match not in cls.__mro__ and not issubclass(match, t)): > raise RuntimeError("Ambiguous dispatch: {} or {}".format( match, t)) E RuntimeError: Ambiguous dispatch: or  /usr/lib/python3.11/functools.py:793: RuntimeError ______________________________ test_bytes_encode _______________________________ def test_bytes_encode() -> None: with pytest.raises(TypeError): > sdjson.dumps(b"hi") tests/stdlib_tests/test_unicode.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sdjson/__init__.py:323: in dumps return _default_encoder.encode(obj) sdjson/__init__.py:382: in encode return super().encode(o) /usr/lib/python3.11/json/encoder.py:200: in encode chunks = self.iterencode(o, _one_shot=True) sdjson/__init__.py:391: in iterencode return super().iterencode(o, _one_shot) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , o = b'hi', _one_shot = True def iterencode(self, o, _one_shot=False): """Encode the given object and yield each string representation as available. For example:: for chunk in JSONEncoder().iterencode(bigobject): mysocket.write(chunk) """ if self.check_circular: markers = {} else: markers = None if self.ensure_ascii: _encoder = encode_basestring_ascii else: _encoder = encode_basestring def floatstr(o, allow_nan=self.allow_nan, _repr=float.__repr__, _inf=INFINITY, _neginf=-INFINITY): # Check for specials. Note that this type of test is processor # and/or platform-specific, so do tests which don't depend on the # internals. if o != o: text = 'NaN' elif o == _inf: text = 'Infinity' elif o == _neginf: text = '-Infinity' else: return _repr(o) if not allow_nan: raise ValueError( "Out of range float values are not JSON compliant: " + repr(o)) return text if (_one_shot and c_make_encoder is not None and self.indent is None): _iterencode = c_make_encoder( markers, self.default, _encoder, self.indent, self.key_separator, self.item_separator, self.sort_keys, self.skipkeys, self.allow_nan) else: _iterencode = _make_iterencode( markers, self.default, _encoder, self.indent, floatstr, self.key_separator, self.item_separator, self.sort_keys, self.skipkeys, _one_shot) > return _iterencode(o, 0) E ValueError: Circular reference detected /usr/lib/python3.11/json/encoder.py:258: ValueError ---------- coverage: platform linux, python 3.11.0-final-0 ----------- Name Stmts Miss Cover ---------------------------------------- sdjson/__init__.py 124 9 93% ---------------------------------------- TOTAL 124 9 93% FAIL Required test coverage of 100.0% not reached. Total coverage: 92.74% ============================= slowest 25 durations ============================= 0.29s call tests/stdlib_tests/test_unicode.py::test_unicode_decode 0.09s call tests/stdlib_tests/test_recursion.py::test_highly_nested_objects_encoding 0.01s call tests/stdlib_tests/test_recursion.py::test_highly_nested_objects_decoding (22 durations < 0.005s hidden. Use -vv to show these durations.) =========================== short test summary info ============================ XFAIL tests/test_custom_encoders.py::test_named_tuple - Not implemented in CPython yet. XFAIL tests/test_load.py::test_dict_failure[dictionary0] XFAIL tests/test_load.py::test_dict_failure[dictionary1] XFAIL tests/test_load.py::test_tuple_failure FAILED tests/test_protocols.py::test_protocols - ValueError: Circular reference detected FAILED tests/test_unregister.py::test_unregister - RuntimeError: Ambiguous dispatch: