Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648526 - dev-python/pytest-cov-2.5.1-r1: fails tests when not installed yet; tests/test_pytest_cov.py::test_central[branch2x]
Summary: dev-python/pytest-cov-2.5.1-r1: fails tests when not installed yet; tests/tes...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-22 15:46 UTC by Michał Górny
Modified: 2020-03-28 18:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,14.25 KB, text/x-log)
2018-02-22 15:47 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-22 15:46:49 UTC
* python2_7: running distutils-r1_run_phase python_test
=============================================================== test session starts ===============================================================
platform freebsd11 -- Python 2.7.14, pytest-3.2.2, py-1.4.34, pluggy-0.4.0 -- /usr/bin/python2.7
cachedir: .cache
rootdir: /var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/work/pytest-cov-2.5.1, inifile: setup.cfg
plugins: xdist-1.15.0, virtualenv-1.2.11, shutil-1.2.11, forked-0.2, capturelog-0.7, hypothesis-3.44.26, flaky-3.4.0, backports.unittest-mock-1.3
collecting ... collected 74 items

tests/test_pytest_cov.py::test_central[branch2x] FAILED
===Flaky Test Report===


===End Flaky Test Report===
============================================================= short test summary info =============================================================
FAIL tests/test_pytest_cov.py::test_central[branch2x]

==================================================================== FAILURES =====================================================================
_____________________________________________________________ test_central[branch2x] ______________________________________________________________
../../../../../work/pytest-cov-2.5.1/tests/test_pytest_cov.py:190: in test_central
    '*10 passed*'
E   Failed: remains unmatched: '*- coverage: platform *, python * -*'
-------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------
running: /usr/bin/python2.7 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/test_central0/runpytest-0 -v --cov=/var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/test_central0 --cov-report=term-missing /var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/test_central0/test_central.py --cov-branch --basetemp=/var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/basetemp
     in: /var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/test_central0
-------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------
usage: pytest.py [options] [file_or_dir] [file_or_dir] [...]
pytest.py: error: unrecognized arguments: --cov=/var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/test_central0 --cov-report=term-missing --cov-branch
  inifile: None
  rootdir: /var/tmp/portage/dev-python/pytest-cov-2.5.1-r1/temp/pytest-of-portage/pytest-0/testdir/test_central0
================================================================ warnings summary =================================================================
None
  [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.

:171
  'pytest_runtest_makereport' hook uses deprecated __multicall__ argument

None
  pytest_funcarg__caplog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
  pytest_funcarg__capturelog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.

-- Docs: http://doc.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================== 1 failed, 4 warnings in 1.23 seconds =======================================================


Full log coming soon. My guess is that it doesn't see the newly-built plugin.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-22 15:47:51 UTC
Created attachment 520554 [details]
build.log

Portage 2.3.24 (python 3.5.4-final-0, default/bsd/fbsd/amd64/11.1, gcc-6.4.0, freebsd-lib-11.1, 11.1-RELEASE amd64)
=================================================================
                         System Settings
=================================================================
System uname: FreeBSD-11.1-RELEASE-amd64-64bit-ELF
KiB Mem:     8355628 total
KiB Swap:    1048576 total
Timestamp of repository gentoo: Wed, 21 Feb 2018 20:07:02 +0000
Head commit of repository gentoo: 77e17410ea8e52cc3d34c6d24d2bf38dd0e4defc

sh sh
ld GNU ld (Gentoo 2.27 p1.1) 2.27
app-shells/bash:         4.4_p19::gentoo
dev-lang/perl:           5.26.1::gentoo
dev-lang/python:         2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:          3.10.2::gentoo
dev-util/pkgconfig:      0.29.2::gentoo
sys-apps/baselayout:     2.4.1-r2::gentoo
sys-apps/openrc:         0.33::gentoo
sys-devel/autoconf:      2.69-r4::gentoo
sys-devel/automake:      1.15.1-r1::gentoo
sys-devel/binutils:      2.27-r1::gentoo
sys-devel/gcc:           6.4.0::gentoo, 7.2.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:    1.9.1::gentoo
sys-devel/libtool:       2.4.6-r4::gentoo
sys-devel/make:          4.2.1-r2::gentoo
sys-freebsd/freebsd-lib: 11.1::gentoo (virtual/os-headers)
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-freebsd11.0"
CFLAGS="-O2 -pipe -mtune=generic"
CHOST="x86_64-gentoo-freebsd11.0"
CONFIG_PROTECT="/boot/device.hints /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=generic"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-wr y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/var/cache/portage/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-fbsd berkdb bindist crypt cxx dri gdbm iconv ipv6 mmx modules multilib ncurses nls oss pam pcre readline sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="FreeBSD" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 *" RUBY_TARGETS="ruby22 ruby23" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 mach64 mga nv r128 radeon rendition s3 s3virge savage sis sisusb tga trident tseng fbdev" 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:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/openssl-1.0.2n::gentoo was built with the following:
USE="asm sslv3 tls-heartbeat zlib -bindist -gmp (-kerberos) -rfc3779 (-sctp) -sslv2 -static-libs -test -vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2"
CFLAGS="-O2 -pipe -mtune=generic -fno-strict-aliasing -Wa,--noexecstack"
CXXFLAGS="-O2 -pipe -mtune=generic -fno-strict-aliasing -Wa,--noexecstack"
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-22 15:49:43 UTC
And yes, I can confirm that installing pytest-cov and then rerunning tests makes them partially pass until I hit bug #643578.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-28 18:52:58 UTC
Old version removed.  Please reopen if you can reproduce.