Mock Version: 1.4.19 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/1040609-epel-8-x86_64-1569499994.715439/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', '--bind=/tmp/mock-resolv.2v5a5h0i:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2v5a5h0i:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f2c914487c4b4105a77db77da504f8e5', '-D', '/var/lib/mock/1040609-epel-8-x86_64-1569499994.715439/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2v5a5h0i:/etc/resolv.conf', '--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-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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-tidy-0.3-13.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/1040609-epel-8-x86_64-1569499994.715439/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', '--bind=/tmp/mock-resolv.2v5a5h0i:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2v5a5h0i:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '101cd580f094412bb24196806dee8245', '-D', '/var/lib/mock/1040609-epel-8-x86_64-1569499994.715439/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2v5a5h0i:/etc/resolv.conf', '--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-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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iZN3GX + 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.C5gZIZ + 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/libexec/platform-python setup.py build '--executable=/usr/libexec/platform-python -s' running build running build_py + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.znV5p8 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64 ++ dirname /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.el8.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy creating /builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.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-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy copying build/lib/tidy/lib.py -> /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy copying build/lib/tidy/__init__.py -> /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy copying build/lib/tidy/test_tidy.py -> /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy/error.py to error.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy/lib.py to lib.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7/site-packages/tidy/test_tidy.py to test_tidy.pyc writing byte-compilation script '/tmp/tmpNIeOXS.py' /usr/bin/python2 -O /tmp/tmpNIeOXS.py removing /tmp/tmpNIeOXS.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-13.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/libexec/platform-python setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python3.6/site-packages creating /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python3.6/site-packages/tidy creating /builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.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-13.el8.x86_64/usr/lib/python3.6/site-packages/tidy copying build/lib/tidy/lib.py -> /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python3.6/site-packages/tidy copying build/lib/tidy/__init__.py -> /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python3.6/site-packages/tidy copying build/lib/tidy/test_tidy.py -> /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python3.6/site-packages/tidy byte-compiling /builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.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-13.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-13.el8.x86_64/usr/lib/python3.6/site-packages/tidy/test_tidy.py to test_tidy.cpython-36.pyc writing byte-compilation script '/tmp/tmpqbjg00fp.py' /usr/libexec/platform-python /tmp/tmpqbjg00fp.py removing /tmp/tmpqbjg00fp.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-13.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-13.el8 --unique-debug-suffix -0.3-13.el8.x86_64 --unique-debug-src-base python-tidy-0.3-13.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-13.el8.x86_64/usr/lib/python3.6 using /usr/libexec/platform-python Bytecompiling .py files below /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.3BFVPj + 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/libexec/platform-python 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.008s FAILED (errors=9) Test failed: error: Test failed: + : + exit 0 Processing files: python2-tidy-0.3-13.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.qipyHw + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + DOCDIR=/builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.el8.x86_64/usr/share/doc/python2-tidy + cp -pr README.rst /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/share/doc/python2-tidy + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.AVuDAJ + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + LICENSEDIR=/builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.el8.x86_64/usr/share/licenses/python2-tidy + cp -pr LICENSE /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/share/licenses/python2-tidy + exit 0 Provides: python2-tidy = 0.3-13.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-13.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.7au8I0 + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + DOCDIR=/builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.el8.x86_64/usr/share/doc/python3-tidy + cp -pr README.rst /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/share/doc/python3-tidy + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.vcIBSh + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + LICENSEDIR=/builddir/build/BUILDROOT/python-tidy-0.3-13.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-13.el8.x86_64/usr/share/licenses/python3-tidy + cp -pr LICENSE /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64/usr/share/licenses/python3-tidy + exit 0 Provides: python3-tidy = 0.3-13.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-13.el8.x86_64 Wrote: /builddir/build/RPMS/python2-tidy-0.3-13.el8.noarch.rpm Wrote: /builddir/build/RPMS/python3-tidy-0.3-13.el8.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.E7qQjD + umask 022 + cd /builddir/build/BUILD + cd uTidylib-0.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-tidy-0.3-13.el8.x86_64 + exit 0 Child return code was: 0