Mock Version: 2.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-tidy.spec'], chrootPath='/var/lib/mock/epel-8-x86_64-1590606886.561766/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': 'C.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.y30tk8g1:/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.y30tk8g1:/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', '0d07fdfce49548db97559707efa65846', '-D', '/var/lib/mock/epel-8-x86_64-1590606886.561766/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y30tk8g1:/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=C.UTF-8', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-tidy.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-tidy-0.3-9.el8.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-tidy.spec'], chrootPath='/var/lib/mock/epel-8-x86_64-1590606886.561766/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': 'C.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.y30tk8g1:/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.y30tk8g1:/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', 'd05b06cd53194e1c869f628d26ea5e24', '-D', '/var/lib/mock/epel-8-x86_64-1590606886.561766/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y30tk8g1:/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=C.UTF-8', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-tidy.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zyvX9t + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf uTidylib-0.3 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/uTidylib-0.3.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd uTidylib-0.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.EMbOwC + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + 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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/tidy copying tidy/test_tidy.py -> build/lib/tidy copying tidy/__init__.py -> build/lib/tidy copying tidy/lib.py -> build/lib/tidy copying tidy/error.py -> build/lib/tidy creating build/lib/tidy/test_data copying tidy/test_data/test.html -> build/lib/tidy/test_data + sleep 1 + 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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3.6 setup.py build '--executable=/usr/bin/python3.6 -s' running build running build_py + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.LxsqTQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 ++ dirname /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 + cd uTidylib-0.3 + 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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy/test_data copying build/lib/tidy/test_data/test.html -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy/test_data copying build/lib/tidy/error.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy copying build/lib/tidy/lib.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy copying build/lib/tidy/__init__.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy copying build/lib/tidy/test_tidy.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy/error.py to error.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy/lib.py to lib.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/tidy/test_tidy.py to test_tidy.pyc writing byte-compilation script '/tmp/tmpBX2Y79.py' /usr/bin/python2 -O /tmp/tmpBX2Y79.py removing /tmp/tmpBX2Y79.py running install_egg_info running egg_info writing uTidylib.egg-info/PKG-INFO writing top-level names to uTidylib.egg-info/top_level.txt writing dependency_links to uTidylib.egg-info/dependency_links.txt reading manifest file 'uTidylib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'uTidylib.egg-info/SOURCES.txt' Copying uTidylib.egg-info to /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7/site-packages/uTidylib-0.3-py2.7.egg-info running install_scripts + 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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3.6 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy creating /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy/test_data copying build/lib/tidy/test_data/test.html -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy/test_data copying build/lib/tidy/error.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy copying build/lib/tidy/lib.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy copying build/lib/tidy/__init__.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy copying build/lib/tidy/test_tidy.py -> /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy/error.py to error.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy/lib.py to lib.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy/__init__.py to __init__.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/tidy/test_tidy.py to test_tidy.cpython-36.pyc writing byte-compilation script '/tmp/tmpwt18hux6.py' /usr/bin/python3.6 /tmp/tmpwt18hux6.py removing /tmp/tmpwt18hux6.py running install_egg_info running egg_info writing uTidylib.egg-info/PKG-INFO writing dependency_links to uTidylib.egg-info/dependency_links.txt writing top-level names to uTidylib.egg-info/top_level.txt reading manifest file 'uTidylib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'uTidylib.egg-info/SOURCES.txt' Copying uTidylib.egg-info to /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6/site-packages/uTidylib-0.3-py3.6.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 0.3-9.el8 --unique-debug-suffix -0.3-9.el8.x86_64 --unique-debug-src-base python-tidy-0.3-9.el8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/uTidylib-0.3 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python3.6 using /usr/libexec/platform-python Bytecompiling .py files below /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/bin/python3.6 + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.L2R6j7 + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + /usr/bin/python2 setup.py test running test running egg_info writing uTidylib.egg-info/PKG-INFO writing top-level names to uTidylib.egg-info/top_level.txt writing dependency_links to uTidylib.egg-info/dependency_links.txt reading manifest file 'uTidylib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'uTidylib.egg-info/SOURCES.txt' running build_ext test_bad_options (tidy.test_tidy.TidyTestCase) ... ok test_big (tidy.test_tidy.TidyTestCase) ... ok test_encodings (tidy.test_tidy.TidyTestCase) ... ok test_error_lines (tidy.test_tidy.TidyTestCase) ... ok test_errors (tidy.test_tidy.TidyTestCase) ... ok test_missing_load (tidy.test_tidy.TidyTestCase) ... ok test_nonexisting (tidy.test_tidy.TidyTestCase) ... FAIL test_options (tidy.test_tidy.TidyTestCase) ... ok test_parse (tidy.test_tidy.TidyTestCase) ... ok test_write (tidy.test_tidy.TidyTestCase) ... ok ====================================================================== FAIL: test_nonexisting (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 52, in test_nonexisting self.assertEquals(str(doc), '') AssertionError: '\n' != u'' ---------------------------------------------------------------------- Ran 10 tests in 0.015s FAILED (failures=1) Test failed: error: Test failed: + : + /usr/bin/python3.6 setup.py test running test running egg_info writing uTidylib.egg-info/PKG-INFO writing dependency_links to uTidylib.egg-info/dependency_links.txt writing top-level names to uTidylib.egg-info/top_level.txt reading manifest file 'uTidylib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'uTidylib.egg-info/SOURCES.txt' running build_ext test_bad_options (tidy.test_tidy.TidyTestCase) ... ERROR test_big (tidy.test_tidy.TidyTestCase) ... ERROR test_encodings (tidy.test_tidy.TidyTestCase) ... /builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py:36: ResourceWarning: unclosed file <_io.BufferedReader name='/builddir/build/BUILD/uTidylib-0.3/tidy/test_data/test.html'> text = open(self.test_file, 'rb').read().decode('utf8').encode( ERROR test_error_lines (tidy.test_tidy.TidyTestCase) ... ERROR test_errors (tidy.test_tidy.TidyTestCase) ... ERROR test_missing_load (tidy.test_tidy.TidyTestCase) ... ok test_nonexisting (tidy.test_tidy.TidyTestCase) ... ERROR test_options (tidy.test_tidy.TidyTestCase) ... ERROR test_parse (tidy.test_tidy.TidyTestCase) ... ERROR test_write (tidy.test_tidy.TidyTestCase) ... ERROR ====================================================================== ERROR: test_bad_options (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 32, in test_bad_options **opts File "/usr/lib64/python3.6/unittest/case.py", line 750, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib64/python3.6/unittest/case.py", line 195, in handle callable_obj(*args, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_big (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 83, in test_big doc = tidy.parseString('{0}'.format(text)) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_encodings (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 40, in test_encodings output_encoding='latin1') File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_error_lines (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 47, in test_error_lines for doc in self.default_docs(): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 20, in default_docs doc1 = tidy.parseString(self.input1) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_errors (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 93, in test_errors doc = tidy.parseString(self.input1) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_nonexisting (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 51, in test_nonexisting doc = tidy.parse(os.path.join(DATA_STORAGE, 'missing.html')) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 274, in parse self.loadFile(doc, filename) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 251, in loadFile self.load(doc, filename, _tidy.ParseFile) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 246, in load status = loader(doc.cdoc, six.binary_type(arg)) TypeError: string argument without an encoding ====================================================================== ERROR: test_options (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 60, in test_options add_xml_decl=1, show_errors=1, newline='CR', output_xhtml=1, File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_parse (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 76, in test_parse doc1, doc2, doc3 = self.default_docs() File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 20, in default_docs doc1 = tidy.parseString(self.input1) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ====================================================================== ERROR: test_write (tidy.test_tidy.TidyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/uTidylib-0.3/tidy/test_tidy.py", line 87, in test_write doc = tidy.parseString(self.input1) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 294, in parseString doc = self._create(**kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 258, in _create self._setOptions(doc, **kwargs) File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 240, in _setOptions if doc.errors: File "/builddir/build/BUILD/uTidylib-0.3/tidy/lib.py", line 204, in get_errors for line in str(self.errsink).splitlines(): TypeError: __str__ returned non-string (type bytes) ---------------------------------------------------------------------- Ran 10 tests in 0.006s FAILED (errors=9) Test failed: Processing files: python2-tidy-0.3-9.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ScOzXo error: Test failed: + : + exit 0 + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + DOCDIR=/builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/doc/python2-tidy + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/doc/python2-tidy + cp -pr README.rst /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/doc/python2-tidy + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.2DxZBG + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + LICENSEDIR=/builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/licenses/python2-tidy + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/licenses/python2-tidy + cp -pr LICENSE /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/licenses/python2-tidy + exit 0 Provides: python2-tidy = 0.3-9.el8 python2.7dist(utidylib) = 0.3 python2dist(utidylib) = 0.3 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) = 2.7 Processing files: python3-tidy-0.3-9.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.DWYYI2 + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + DOCDIR=/builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/doc/python3-tidy + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/doc/python3-tidy + cp -pr README.rst /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/doc/python3-tidy + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.fwcPQo + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + LICENSEDIR=/builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/licenses/python3-tidy + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/licenses/python3-tidy + cp -pr LICENSE /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64/usr/share/licenses/python3-tidy + exit 0 Provides: python3-tidy = 0.3-9.el8 python3.6dist(utidylib) = 0.3 python3dist(utidylib) = 0.3 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.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 Wrote: /builddir/build/RPMS/python2-tidy-0.3-9.el8.noarch.rpm Wrote: /builddir/build/RPMS/python3-tidy-0.3-9.el8.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.fJYIGP + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-tidy-0.3-9.el8.x86_64 + exit 0 Child return code was: 0