* Package: dev-python/coloredlogs-10.0 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_7 test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking coloredlogs-10.0.tar.gz to /var/tmp/portage/dev-python/coloredlogs-10.0/work >>> Source unpacked in /var/tmp/portage/dev-python/coloredlogs-10.0/work >>> Preparing source in /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0 ... * Applying coloredlogs-10.0-skip-sandbox-violation-tests.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0 ... * python3_7: running distutils-r1_run_phase distutils-r1_python_compile python3.7 setup.py build -j 4 running build running build_py creating /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs copying coloredlogs/__init__.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs copying coloredlogs/syslog.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs copying coloredlogs/tests.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs copying coloredlogs/demo.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs copying coloredlogs/cli.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs creating /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs/converter copying coloredlogs/converter/__init__.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs/converter copying coloredlogs/converter/colors.py -> /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0-python3_7/lib/coloredlogs/converter warning: build_py: byte-compiling is disabled, skipping. * Using python3.8 in global scope * python3_8: running distutils-r1_run_phase python_compile_all >>> Source compiled. >>> Test phase: dev-python/coloredlogs-10.0 * python3_7: running distutils-r1_run_phase python_test ============================= test session starts ============================== platform linux -- Python 3.7.7, pytest-5.4.2, py-1.8.0, pluggy-0.13.1 -- /usr/bin/python3.7 cachedir: .pytest_cache rootdir: /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0 collecting ... collected 25 items coloredlogs/tests.py::ColoredLogsTestCase::test_auto_install FAILED [ 4%] coloredlogs/tests.py::ColoredLogsTestCase::test_cli_demo PASSED [ 8%] coloredlogs/tests.py::ColoredLogsTestCase::test_colorama_enabled PASSED [ 12%] coloredlogs/tests.py::ColoredLogsTestCase::test_colorama_missing PASSED [ 16%] coloredlogs/tests.py::ColoredLogsTestCase::test_decrease_verbosity PASSED [ 20%] coloredlogs/tests.py::ColoredLogsTestCase::test_disable_colored_cron_mailer PASSED [ 24%] coloredlogs/tests.py::ColoredLogsTestCase::test_empty_conversion PASSED [ 28%] coloredlogs/tests.py::ColoredLogsTestCase::test_enable_colored_cron_mailer PASSED [ 32%] coloredlogs/tests.py::ColoredLogsTestCase::test_explicit_usage_message PASSED [ 36%] coloredlogs/tests.py::ColoredLogsTestCase::test_find_handler PASSED [ 40%] coloredlogs/tests.py::ColoredLogsTestCase::test_find_hostname PASSED [ 44%] coloredlogs/tests.py::ColoredLogsTestCase::test_host_name_filter PASSED [ 48%] coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion PASSED [ 52%] coloredlogs/tests.py::ColoredLogsTestCase::test_implicit_usage_message PASSED [ 56%] coloredlogs/tests.py::ColoredLogsTestCase::test_increase_verbosity PASSED [ 60%] coloredlogs/tests.py::ColoredLogsTestCase::test_is_verbose PASSED [ 64%] coloredlogs/tests.py::ColoredLogsTestCase::test_level_discovery PASSED [ 68%] coloredlogs/tests.py::ColoredLogsTestCase::test_level_to_number PASSED [ 72%] coloredlogs/tests.py::ColoredLogsTestCase::test_name_normalization PASSED [ 76%] coloredlogs/tests.py::ColoredLogsTestCase::test_output_interception PASSED [ 80%] coloredlogs/tests.py::ColoredLogsTestCase::test_program_name_filter PASSED [ 84%] coloredlogs/tests.py::ColoredLogsTestCase::test_style_parsing PASSED [ 88%] coloredlogs/tests.py::ColoredLogsTestCase::test_support_for_milliseconds PASSED [ 92%] coloredlogs/tests.py::ColoredLogsTestCase::test_support_for_milliseconds_directive PASSED [ 96%] coloredlogs/tests.py::ColoredLogsTestCase::test_walk_propagation_tree PASSED [100%] =================================== FAILURES =================================== ____________________ ColoredLogsTestCase.test_auto_install _____________________ self = test_method = > args = (), kw = {} def skipTestWrapper(self, test_method, *args, **kw): """ Wrap test methods to translate exceptions into skipped tests. :param test_method: The test method to wrap. :param args: The positional arguments to the test method. :param kw: The keyword arguments to the test method. :returns: The return value of the test method. When a :class:`TestCase` object is initialized, :func:`__init__()` wraps all of the ``test_*`` methods with :func:`skipTestWrapper()`. When a test method raises an exception, :func:`skipTestWrapper()` will catch the exception and call :func:`shouldSkipTest()` to decide whether to translate the exception into a skipped test. When :func:`shouldSkipTest()` returns :data:`True` the exception is swallowed and :exc:`unittest.SkipTest` is raised instead of the original exception. """ try: > return test_method(*args, **kw) /usr/lib/python3.7/site-packages/humanfriendly/testing.py:678: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def test_auto_install(self): """Test :func:`coloredlogs.auto_install()`.""" needle = random_string() command_line = [sys.executable, '-c', 'import logging; logging.info(%r)' % needle] # Sanity check that log messages aren't enabled by default. with CaptureOutput() as capturer: os.environ['COLOREDLOGS_AUTO_INSTALL'] = 'false' subprocess.call(command_line) output = capturer.get_text() assert needle not in output # Test that the $COLOREDLOGS_AUTO_INSTALL environment variable can be # used to automatically call coloredlogs.install() during initialization. with CaptureOutput() as capturer: os.environ['COLOREDLOGS_AUTO_INSTALL'] = 'true' subprocess.call(command_line) output = capturer.get_text() > assert needle in output E AssertionError: assert 'FnCOkNHlnfcPtXolPLjgzsAJbcJdvLoREepMSYeEVWDpAvGEyFbgepnweomhGBSDhrUxaQcClTpX' in '' coloredlogs/tests.py:425: AssertionError ----------------------------- Captured stderr call ----------------------------- =============================== warnings summary =============================== coloredlogs/tests.py:11 /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:11: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp coloredlogs/converter/__init__.py:55 /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/converter/__init__.py:55: DeprecationWarning: invalid escape sequence \s ''', re.UNICODE | re.VERBOSE) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:340: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_encoded_text)) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:343: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('bright yellow', color='yellow', bright=True))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:346: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('red background', background='red'))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:349: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('bright red background', background='red', bright=True))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:352: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('256 color mode foreground', color=214))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:355: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('256 color mode background', background=124))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:358: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert('\x1b[38;5;256mplain text expected\x1b[0m')) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:361: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('bold text', bold=True))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:364: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('underlined text', underline=True))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:367: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('strike-through text', strike_through=True))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:370: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_wrap('inverse', color='yellow', inverse=True))) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:375: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(sample_text)) coloredlogs/tests.py::ColoredLogsTestCase::test_html_conversion /var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0/coloredlogs/tests.py:389: DeprecationWarning: Please use assertEqual instead. self.assertEquals(expected_html, convert(ansi_encoded_text)) -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================== short test summary info ============================ FAILED coloredlogs/tests.py::ColoredLogsTestCase::test_auto_install - Asserti... ================== 1 failed, 24 passed, 24 warnings in 0.58s =================== * ERROR: dev-python/coloredlogs-10.0::gentoo failed (test phase): * Tests fail with python3.7 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2977: Called distutils-r1_src_test * environment, line 1272: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 457: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2574: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2054: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2052: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 860: Called distutils-r1_run_phase 'python_test' * environment, line 1209: Called python_test * environment, line 2919: Called die * The specific snippet of code: * pytest -vv ${PN}/tests.py || die "Tests fail with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/coloredlogs-10.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/coloredlogs-10.0::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/dev-python/coloredlogs-10.0:20200516-043111.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/coloredlogs-10.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/coloredlogs-10.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0' * S: '/var/tmp/portage/dev-python/coloredlogs-10.0/work/coloredlogs-10.0' emerge --info: Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r3, 5.4.0-1009-aws x86_64) ================================================================= System uname: Linux-5.4.0-1009-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 KiB Mem: 16011344 total, 8998812 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 18 May 2020 06:35:26 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.2::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 10.1.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j4" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS