* Package: dev-python/utidylib-0.7-r2 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_ppc_64 elibc_glibc kernel_linux ppc64 python_targets_python3_9 test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking utidylib-0.7.gh.tar.gz to /var/tmp/portage/dev-python/utidylib-0.7-r2/work >>> Source unpacked in /var/tmp/portage/dev-python/utidylib-0.7-r2/work >>> Preparing source in /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7 ... * python3_9: running distutils-r1_run_phase distutils-r1_python_compile python3.9 setup.py build -j 12 running build running build_py creating /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy copying tidy/test_tidy.py -> /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy copying tidy/lib.py -> /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy copying tidy/error.py -> /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy copying tidy/__init__.py -> /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy running egg_info creating uTidylib.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 writing manifest file 'uTidylib.egg-info/SOURCES.txt' listing git files failed - pretending there aren't any reading manifest file 'uTidylib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'uTidylib.egg-info/SOURCES.txt' creating /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy/test_data copying tidy/test_data/test.html -> /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7-python3_9/lib/tidy/test_data warning: build_py: byte-compiling is disabled, skipping. * Using python3.9 in global scope * python3_9: running distutils-r1_run_phase python_compile_all >>> Source compiled. >>> Test phase: dev-python/utidylib-0.7-r2 * python3_9: running distutils-r1_run_phase python_test python3.9 -m pytest -vv -ra -l -Wdefault --deselect tidy/test_tidy.py::TidyTestCase::test_missing_load ============================= test session starts ============================== platform linux -- Python 3.9.6, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /usr/bin/python3.9 cachedir: .pytest_cache rootdir: /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7, configfile: pytest.ini plugins: flaky-3.7.0, pkgcore-0.12.8 collecting ... collected 14 items / 1 deselected / 13 selected tidy/__init__.py::tidy PASSED [ 7%] tidy/test_tidy.py::TidyTestCase::test_bad_option_values FAILED [ 15%] tidy/test_tidy.py::TidyTestCase::test_bad_options FAILED [ 23%] tidy/test_tidy.py::TidyTestCase::test_big PASSED [ 30%] tidy/test_tidy.py::TidyTestCase::test_encodings PASSED [ 38%] tidy/test_tidy.py::TidyTestCase::test_error_lines FAILED [ 46%] tidy/test_tidy.py::TidyTestCase::test_errors PASSED [ 53%] tidy/test_tidy.py::TidyTestCase::test_nonexisting FAILED [ 61%] tidy/test_tidy.py::TidyTestCase::test_options FAILED [ 69%] tidy/test_tidy.py::TidyTestCase::test_parse PASSED [ 76%] tidy/test_tidy.py::TidyTestCase::test_report_item PASSED [ 84%] tidy/test_tidy.py::TidyTestCase::test_unicode PASSED [ 92%] tidy/test_tidy.py::TidyTestCase::test_write PASSED [100%] =================================== FAILURES =================================== _____________________ TidyTestCase.test_bad_option_values ______________________ self = def test_bad_option_values(self): badopts = [{"indent": "---"}, {"indent_spaces": None}] for opts in badopts: with self.assertRaisesRegex( tidy.OptionArgError, "missing or malformed argument" ): > tidy.parseString(self.input2, **opts) E AssertionError: OptionArgError not raised badopts = [{'indent': '---'}, {'indent_spaces': None}] opts = {'indent': '---'} self = tidy/test_tidy.py:38: AssertionError ________________________ TidyTestCase.test_bad_options _________________________ self = def test_bad_options(self): badopts = [{"foo": 1}] for opts in badopts: with self.assertRaisesRegex( tidy.InvalidOptionError, "not a valid Tidy option" ): > tidy.parseString(self.input2, **opts) E AssertionError: InvalidOptionError not raised badopts = [{'foo': 1}] opts = {'foo': 1} self = tidy/test_tidy.py:30: AssertionError ________________________ TidyTestCase.test_error_lines _________________________ self = def test_error_lines(self): for doc in self.default_docs(): > self.assertEqual(doc.errors[0].line, 1) E IndexError: list index out of range doc = self = tidy/test_tidy.py:54: IndexError ________________________ TidyTestCase.test_nonexisting _________________________ self = def test_nonexisting(self): doc = tidy.parse(os.path.join(DATA_STORAGE, "missing.html")) self.assertEqual(str(doc).strip(), "") > self.assertIn("missing.html", doc.errors[0].message) E IndexError: list index out of range doc = self = tidy/test_tidy.py:59: IndexError __________________________ TidyTestCase.test_options ___________________________ self = def test_options(self): doc1 = tidy.parseString( self.input1, add_xml_decl=1, show_errors=1, newline="CR", output_xhtml=1 ) self.assertIn("CDATA", str(doc1)) doc2 = tidy.parseString( "", add_xml_decl=1, show_errors=1, newline="CR", output_xhtml=1 ) self.assertTrue(str(doc2).startswith(" self.assertFalse(len(doc2.errors) == 0) E AssertionError: True is not false doc1 = doc2 = self = tidy/test_tidy.py:77: AssertionError =============================== warnings summary =============================== tidy/test_tidy.py: 11 warnings /usr/lib/python3.9/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored on calling ctypes callback function: Traceback (most recent call last): File "/var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7/tidy/lib.py", line 76, in putByte sinkfactory[handle].putByte(char) KeyError: 0 warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) tidy/test_tidy.py::TidyTestCase::test_encodings /var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7/tidy/test_tidy.py:42: ResourceWarning: unclosed file <_io.BufferedReader name='/var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7/tidy/test_data/test.html'> open(self.test_file, "rb") -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED tidy/test_tidy.py::TidyTestCase::test_bad_option_values - AssertionErr... FAILED tidy/test_tidy.py::TidyTestCase::test_bad_options - AssertionError: In... FAILED tidy/test_tidy.py::TidyTestCase::test_error_lines - IndexError: list i... FAILED tidy/test_tidy.py::TidyTestCase::test_nonexisting - IndexError: list i... FAILED tidy/test_tidy.py::TidyTestCase::test_options - AssertionError: True i... ============ 5 failed, 8 passed, 1 deselected, 12 warnings in 0.42s ============ * ERROR: dev-python/utidylib-0.7-r2::gentoo failed (test phase): * pytest failed with python3.9 * * Call stack: * ebuild.sh, line 127: Called src_test * environment, line 2842: Called distutils-r1_src_test * environment, line 1187: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 448: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2487: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2004: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2002: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 740: Called distutils-r1_run_phase 'python_test' * environment, line 1126: Called python_test * environment, line 2783: Called distutils-r1_python_test * environment, line 1083: Called epytest * environment, line 1520: Called die * The specific snippet of code: * "${@}" || die -n "pytest failed with ${EPYTHON}"; * * If you need support, post the output of `emerge --info '=dev-python/utidylib-0.7-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/utidylib-0.7-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/utidylib-0.7-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/utidylib-0.7-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7' * S: '/var/tmp/portage/dev-python/utidylib-0.7-r2/work/utidylib-0.7'