Mock Version: 2.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'], chrootPath='/var/lib/mock/1248219-fedora-rawhide-x86_64-1582293612.685575/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bnn3vq88:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bnn3vq88:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '583a9ad1a85f49daa1668854de55eed1', '-D', '/var/lib/mock/1248219-fedora-rawhide-x86_64-1582293612.685575/root', '-a', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bnn3vq88:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1582243200 Wrote: /builddir/build/SRPMS/python-pure-protobuf-2.0.0-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'], chrootPath='/var/lib/mock/1248219-fedora-rawhide-x86_64-1582293612.685575/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bnn3vq88:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bnn3vq88:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ad96cd650d0c4571a72f5eb79c1162e5', '-D', '/var/lib/mock/1248219-fedora-rawhide-x86_64-1582293612.685575/root', '-a', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bnn3vq88:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1582243200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sQcxRu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf protobuf-2.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/python-pure-protobuf-2.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd protobuf-2.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pure-protobuf.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0i3wLv + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/pure_protobuf copying pure_protobuf/io_.py -> build/lib/pure_protobuf copying pure_protobuf/fields.py -> build/lib/pure_protobuf copying pure_protobuf/enums.py -> build/lib/pure_protobuf copying pure_protobuf/dataclasses_.py -> build/lib/pure_protobuf copying pure_protobuf/__init__.py -> build/lib/pure_protobuf creating build/lib/tests creating build/lib/tests/types copying tests/types/test_google.py -> build/lib/tests/types copying tests/types/__init__.py -> build/lib/tests/types creating build/lib/pure_protobuf/types copying pure_protobuf/types/google.py -> build/lib/pure_protobuf/types copying pure_protobuf/types/__init__.py -> build/lib/pure_protobuf/types creating build/lib/pure_protobuf/serializers copying pure_protobuf/serializers/google.py -> build/lib/pure_protobuf/serializers copying pure_protobuf/serializers/__init__.py -> build/lib/pure_protobuf/serializers + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.dIrTox + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 ++ dirname /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 + cd protobuf-2.0.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8 creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/tests creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/tests/types copying build/lib/tests/types/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/tests/types copying build/lib/tests/types/test_google.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/tests/types creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/serializers copying build/lib/pure_protobuf/serializers/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/serializers copying build/lib/pure_protobuf/serializers/google.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/serializers creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/types copying build/lib/pure_protobuf/types/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/types copying build/lib/pure_protobuf/types/google.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/types copying build/lib/pure_protobuf/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf copying build/lib/pure_protobuf/dataclasses_.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf copying build/lib/pure_protobuf/enums.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf copying build/lib/pure_protobuf/fields.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf copying build/lib/pure_protobuf/io_.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/tests/types/__init__.py to __init__.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/tests/types/test_google.py to test_google.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/serializers/__init__.py to __init__.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/serializers/google.py to google.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/types/__init__.py to __init__.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/types/google.py to google.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/__init__.py to __init__.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/dataclasses_.py to dataclasses_.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/enums.py to enums.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/fields.py to fields.cpython-38.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf/io_.py to io_.cpython-38.pyc writing byte-compilation script '/tmp/tmp5dntpojx.py' /usr/bin/python3 /tmp/tmp5dntpojx.py removing /tmp/tmp5dntpojx.py running install_egg_info running egg_info creating pure_protobuf.egg-info writing pure_protobuf.egg-info/PKG-INFO writing dependency_links to pure_protobuf.egg-info/dependency_links.txt writing requirements to pure_protobuf.egg-info/requires.txt writing top-level names to pure_protobuf.egg-info/top_level.txt writing manifest file 'pure_protobuf.egg-info/SOURCES.txt' reading manifest file 'pure_protobuf.egg-info/SOURCES.txt' writing manifest file 'pure_protobuf.egg-info/SOURCES.txt' Copying pure_protobuf.egg-info to /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8/site-packages/pure_protobuf-2.0.0-py3.8.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/bin/__pycache__ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 2.0.0-1.fc33 --unique-debug-suffix -2.0.0-1.fc33.x86_64 --unique-debug-src-base python-pure-protobuf-2.0.0-1.fc33.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/protobuf-2.0.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/lib/python3.8 using /usr/bin/python3.8 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.v5w1iv + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.0 + /usr/bin/python3 -m pytest -v ============================= test session starts ============================== platform linux -- Python 3.8.2rc1, pytest-4.6.9, py-1.8.0, pluggy-0.13.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/protobuf-2.0.0 plugins: cov-2.8.1 collecting ... collected 76 items tests/test_dataclasses.py::test_make_field[1-a-uint32-150-\x08\x96\x01] PASSED [ 1%] tests/test_dataclasses.py::test_make_field[1-a-type_1-value1-\n\x04\x01\x96\x01\x02] PASSED [ 2%] tests/test_dataclasses.py::test_make_field[1-a-type_2-value2-\n\x01B\n\x01C] PASSED [ 3%] tests/test_dataclasses.py::test_make_field[1-a-type_3-None-] PASSED [ 5%] tests/test_dataclasses.py::test_make_field[1-a-type_4-Testing-\n\x07Testing] PASSED [ 6%] tests/test_dataclasses.py::test_make_field_value_error[1-a-uint32-None] PASSED [ 7%] tests/test_dataclasses.py::test_make_field_key_error[type_0] PASSED [ 9%] tests/test_dataclasses.py::test_message_type_error[type_0] PASSED [ 10%] tests/test_fields.py::test_non_repeated_field[testing-\n\x07testing] PASSED [ 11%] tests/test_fields.py::test_optional_non_repeated_field[1-\x08\x01] PASSED [ 13%] tests/test_fields.py::test_optional_non_repeated_field[None-] PASSED [ 14%] tests/test_fields.py::test_non_repeated_field_value_error[None] PASSED [ 15%] tests/test_fields.py::test_packed_repeated_field[value0-\n\x00] PASSED [ 17%] tests/test_fields.py::test_packed_repeated_field[value1-\n\x01\x03] PASSED [ 18%] tests/test_fields.py::test_packed_repeated_field[value2-\n\x02\x04\x05] PASSED [ 19%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer0-value0-] PASSED [ 21%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer1-value1-\x08\x03] PASSED [ 22%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer2-value2-\x08\x04\x08\x05] PASSED [ 23%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer3-value3-\n\x04None] PASSED [ 25%] tests/test_fields.py::test_unpacked_repeated_field_load[serializer0-value0-\x03] PASSED [ 26%] tests/test_fields.py::test_unpacked_repeated_field_load[serializer1-value1-\x04None] PASSED [ 27%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass SearchRequest:\n query: str = field(1, default='')\n page_number: int32 = field(2, default=int32(0))\n result_per_page: int32 = field(3, default=int32(0))\n \n\nassert SearchRequest(\n query='hello',\n page_number=int32(1),\n result_per_page=int32(10),\n).dumps() == b'\\x0A\\x05hello\\x10\\x01\\x18\\x0A'\n] PASSED [ 28%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import List\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Message:\n foo: List[int32] = field(1, default_factory=list)\n] PASSED [ 30%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Foo:\n bar: int32 = field(1, default=42)\n qux: Optional[int32] = field(2, default=None)\n\n\nassert Foo().dumps() == b'\\x08\\x2A'\nassert Foo.loads(b'') == Foo(bar=42)\n] PASSED [ 31%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nfrom pure_protobuf.dataclasses_ import optional_field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Foo:\n qux: Optional[int32] = optional_field(2)\n\n\nassert Foo().dumps() == b''\nassert Foo.loads(b'') == Foo(qux=None)\n] PASSED [ 32%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom enum import IntEnum\n\nfrom pure_protobuf.dataclasses_ import field, message\n\n\nclass TestEnum(IntEnum):\n BAR = 1\n\n\n@message\n@dataclass\nclass Test:\n foo: TestEnum = field(1)\n\n\nassert Test(foo=TestEnum.BAR).dumps() == b'\\x08\\x01'\nassert Test.loads(b'\\x08\\x01') == Test(foo=TestEnum.BAR)\n] PASSED [ 34%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Test1:\n a: int32 = field(1, default=0)\n\n\n@message\n@dataclass\nclass Test3:\n c: Test1 = field(3, default_factory=Test1)\n\n\nassert Test3(c=Test1(a=int32(150))).dumps() == b'\\x1A\\x03\\x08\\x96\\x01'\n] PASSED [ 35%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom datetime import datetime\nfrom typing import Optional\n\nfrom pure_protobuf.dataclasses_ import field, message\n\n\n@message\n@dataclass\nclass Test:\n timestamp: Optional[datetime] = field(1, default=None)\n] PASSED [ 36%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import Any, Optional\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types.google import Timestamp\n\n\n@message\n@dataclass\nclass Message:\n value: Optional[Any] = field(1)\n\n\n# Here `Timestamp` is used just as an example, in principle any importable user type works.\nmessage = Message(value=Timestamp(seconds=42))\nassert Message.loads(message.dumps()) == message\n] PASSED [ 38%] tests/test_serializers.py::test_serializer_value_error[SignedVarintSerializer-hello] PASSED [ 39%] tests/test_serializers.py::test_serializer_value_error[BytesSerializer-42] PASSED [ 40%] tests/test_serializers.py::test_serializer_value_error[StringSerializer-42] PASSED [ 42%] tests/test_serializers.py::test_serializer_value_error[UnsignedInt32Serializer-4294967296] PASSED [ 43%] tests/test_serializers.py::test_serializer_value_error[UnsignedInt64Serializer--1] PASSED [ 44%] tests/test_serializers.py::test_serializer_value_error[SignedInt32Serializer-2147483648] PASSED [ 46%] tests/test_serializers.py::test_serializer_value_error[SignedInt64Serializer-9223372036854775808] PASSED [ 47%] tests/test_serializers.py::test_serializer_value_error[BooleanSerializer-42] PASSED [ 48%] tests/test_serializers.py::test_serializer_value_error[SignedFixed32Serializer-hello] PASSED [ 50%] tests/test_serializers.py::test_serializer_value_error[UnsignedFixed32Serializer-hello] PASSED [ 51%] tests/test_serializers.py::test_serializer_value_error[SignedFixed64Serializer-hello] PASSED [ 52%] tests/test_serializers.py::test_serializer_value_error[UnsignedFixed64Serializer-hello] PASSED [ 53%] tests/test_serializers.py::test_serializer_value_error[FloatSerializer-hello] PASSED [ 55%] tests/test_serializers.py::test_serializer_value_error[DoubleSerializer-hello] PASSED [ 56%] tests/test_serializers.py::test_unsigned_varint_serializer[0-\x00] PASSED [ 57%] tests/test_serializers.py::test_unsigned_varint_serializer[3-\x03] PASSED [ 59%] tests/test_serializers.py::test_unsigned_varint_serializer[270-\x8e\x02] PASSED [ 60%] tests/test_serializers.py::test_unsigned_varint_serializer[86942-\x9e\xa7\x05] PASSED [ 61%] tests/test_serializers.py::test_signed_varint_serializer[0-\x00] PASSED [ 63%] tests/test_serializers.py::test_signed_varint_serializer[-1-\x01] PASSED [ 64%] tests/test_serializers.py::test_signed_varint_serializer[1-\x02] PASSED [ 65%] tests/test_serializers.py::test_signed_varint_serializer[-2-\x03] PASSED [ 67%] tests/test_serializers.py::test_bytes_serializer[testing-\x07testing] PASSED [ 68%] tests/test_serializers.py::test_bytes_serializer[value1-\x07testing] PASSED [ 69%] tests/test_serializers.py::test_bytes_serializer[value2-\x07testing] PASSED [ 71%] tests/test_serializers.py::test_string_serializer[\u041f\u0440\u0438\u0432\u0435\u0442-\x0c\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82] PASSED [ 72%] tests/test_serializers.py::test_boolean_serializer[True-\x01] PASSED [ 73%] tests/test_serializers.py::test_boolean_serializer[False-\x00] PASSED [ 75%] tests/test_serializers.py::test_int_enum_serializer[WireType.VARINT-\x00] PASSED [ 76%] tests/test_serializers.py::test_int_enum_serializer[WireType.LONG_LONG-\x01] PASSED [ 77%] tests/test_serializers.py::test_int_enum_serializer[WireType.BYTES-\x02] PASSED [ 78%] tests/test_serializers.py::test_int_enum_serializer[WireType.LONG-\x05] PASSED [ 80%] tests/test_serializers.py::test_packing_serializer[2-\x01\x02] PASSED [ 81%] tests/test_serializers.py::test_packing_serializer[270-\x02\x8e\x02] PASSED [ 82%] tests/test_serializers.py::test_class_1 PASSED [ 84%] tests/test_serializers.py::test_class_1_unknown_field PASSED [ 85%] tests/test_serializers.py::test_class_2 PASSED [ 86%] tests/test_serializers.py::test_class_3 PASSED [ 88%] tests/test_serializers.py::test_merge_repeated_embedded_message PASSED [ 89%] tests/test_serializers.py::test_unpacked_as_packed PASSED [ 90%] tests/test_serializers.py::test_enum PASSED [ 92%] tests/types/test_google.py::test_type_url[Any_-type.googleapis.com/pure_protobuf.types.google.Any_] PASSED [ 93%] tests/types/test_google.py::test_type_url[Duration-type.googleapis.com/pure_protobuf.types.google.Duration] PASSED [ 94%] tests/types/test_google.py::test_type_url[Timestamp-type.googleapis.com/pure_protobuf.types.google.Timestamp] PASSED [ 96%] tests/types/test_google.py::test_datetime PASSED [ 97%] tests/types/test_google.py::test_timedelta PASSED [ 98%] tests/types/test_google.py::test_any PASSED [100%] ========================== 76 passed in 0.43 seconds =========================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-pure-protobuf-2.0.0-1.fc33.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Td1N1v + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.0 + DOCDIR=/builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/share/doc/python3-pure-protobuf + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/share/doc/python3-pure-protobuf + cp -pr README.md /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/share/doc/python3-pure-protobuf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.EjKZdw + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.0 + LICENSEDIR=/builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/share/licenses/python3-pure-protobuf + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/share/licenses/python3-pure-protobuf + cp -pr LICENSE /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64/usr/share/licenses/python3-pure-protobuf + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-pure-protobuf = 2.0.0-1.fc33 python3-pure-protobuf = 2.0.0-1.fc33 python3.8dist(pure-protobuf) = 2 python3dist(pure-protobuf) = 2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.8 Obsoletes: python-pure-protobuf < 2.0.0-1.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 Wrote: /builddir/build/RPMS/python3-pure-protobuf-2.0.0-1.fc33.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.dGsI5w + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-pure-protobuf-2.0.0-1.fc33.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0