Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 660366 Details for
Bug 742626
dev-python/mss-6.0.0 fails tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 65.68 KB, created by
Agostino Sarubbo
on 2020-09-15 09:13:14 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2020-09-15 09:13:14 UTC
Size:
65.68 KB
patch
obsolete
> * Package: dev-python/mss-6.0.0 > * Repository: gentoo > * Maintainer: andrewammerlaan@riseup.net proxy-maint@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_7 python_targets_python3_8 python_targets_python3_9 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > > >@@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ >This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; >This ebuild was merged at the following commit: >https://github.com/gentoo/gentoo/commit/136bf236ef341ec08a2af12fb04b2b6f6701acc8 (Tue Sep 15 08:09:24 UTC 2020) >@@@@@ END @@@@@ > > > >emerge --info: >Portage 3.0.7 (python 3.7.9-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r1, 5.4.0-1024-aws x86_64) >================================================================= >System uname: Linux-5.4.0-1024-aws-x86_64-Intel-R-_Xeon-R-_Platinum_8124M_CPU_@_3.00GHz-with-gentoo-2.7 >KiB Mem: 71926564 total, 53208452 free >KiB Swap: 0 total, 0 free >sh bash 5.0_p18 >ld GNU ld (Gentoo 2.34 p6) 2.34.0 >app-shells/bash: 5.0_p18::gentoo >dev-lang/perl: 5.30.3-r1::gentoo >dev-lang/python: 2.7.18-r3::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo >dev-util/cmake: 3.18.2::gentoo >sys-apps/baselayout: 2.7::gentoo >sys-apps/openrc: 0.42.1::gentoo >sys-apps/sandbox: 2.20::gentoo >sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo >sys-devel/automake: 1.16.2::gentoo >sys-devel/binutils: 2.34-r2::gentoo >sys-devel/gcc: 10.2.0-r1::gentoo >sys-devel/gcc-config: 2.3.2::gentoo >sys-devel/libtool: 2.4.6-r6::gentoo >sys-devel/make: 4.3::gentoo >sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) >sys-libs/glibc: 2.32-r1::gentoo >Repositories: > >gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://rsync.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-verify-max-age: 24 > sync-rsync-verify-metamanifest: yes > sync-rsync-extra-opts: > sync-rsync-verify-jobs: 1 > >ACCEPT_KEYWORDS="amd64 ~amd64" >ACCEPT_LICENSE="* MIT" >CBUILD="x86_64-pc-linux-gnu" >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" >CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" >DISTDIR="/var/tmp/portage/dev-python/mss-6.0.0/distdir" >EMERGE_DEFAULT_OPTS="--with-bdeps=y -1 -k -b" >ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 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 test 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.UTF8" >LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" >MAKEOPTS="-j36 V=1" >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 elogind fortran gdbm iconv ipv6 jumbo-build libglvnd libtirpc multilib native-symlinks ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd test unicode xattr zlib" ABI_X86="64" ELIBC="glibc" KERNEL="linux" PYTHON_TARGETS="python3_7 python3_8 python3_9" USERLAND="GNU" >Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS > > > >>>> Unpacking source... >>>> Unpacking mss-6.0.0.tar.gz to /var/tmp/portage/dev-python/mss-6.0.0/work >>>> Source unpacked in /var/tmp/portage/dev-python/mss-6.0.0/work >>>> Preparing source in /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0 ... > * python3_7: running distutils-r1_run_phase distutils-r1_python_compile >python3.7 setup.py build -j 36 >running build >running build_py >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/factory.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/models.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/exception.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/tools.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/__main__.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/darwin.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/linux.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/base.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/screenshot.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/__init__.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >copying mss/windows.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss >running egg_info >creating mss.egg-info >writing mss.egg-info/PKG-INFO >writing dependency_links to mss.egg-info/dependency_links.txt >writing entry points to mss.egg-info/entry_points.txt >writing top-level names to mss.egg-info/top_level.txt >writing manifest file 'mss.egg-info/SOURCES.txt' >reading manifest file 'mss.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'mss.egg-info/SOURCES.txt' >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/bench_bgra2rgb.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/bench_general.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/conftest.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_bgra_to_rgb.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_cls_image.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_find_monitors.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_get_pixels.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_gnu_linux.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_implementation.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_leaks.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_macos.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_save.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_setup.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_third_party.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_tools.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >copying mss/tests/test_windows.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests/res >copying mss/tests/res/monitor-1024x768.raw -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_7/lib/mss/tests/res >warning: build_py: byte-compiling is disabled, skipping. > > * python3_8: running distutils-r1_run_phase distutils-r1_python_compile >python3.8 setup.py build -j 36 >running build >running build_py >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/factory.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/models.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/exception.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/tools.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/__main__.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/darwin.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/linux.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/base.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/screenshot.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/__init__.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >copying mss/windows.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss >running egg_info >writing mss.egg-info/PKG-INFO >writing dependency_links to mss.egg-info/dependency_links.txt >writing entry points to mss.egg-info/entry_points.txt >writing top-level names to mss.egg-info/top_level.txt >reading manifest file 'mss.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'mss.egg-info/SOURCES.txt' >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/bench_bgra2rgb.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/bench_general.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/conftest.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_bgra_to_rgb.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_cls_image.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_find_monitors.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_get_pixels.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_gnu_linux.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_implementation.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_leaks.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_macos.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_save.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_setup.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_third_party.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_tools.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >copying mss/tests/test_windows.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests/res >copying mss/tests/res/monitor-1024x768.raw -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_8/lib/mss/tests/res >warning: build_py: byte-compiling is disabled, skipping. > > * python3_9: running distutils-r1_run_phase distutils-r1_python_compile >python3.9 setup.py build -j 36 >running build >running build_py >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/factory.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/models.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/exception.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/tools.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/__main__.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/darwin.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/linux.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/base.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/screenshot.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/__init__.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >copying mss/windows.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss >running egg_info >writing mss.egg-info/PKG-INFO >writing dependency_links to mss.egg-info/dependency_links.txt >writing entry points to mss.egg-info/entry_points.txt >writing top-level names to mss.egg-info/top_level.txt >reading manifest file 'mss.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'mss.egg-info/SOURCES.txt' >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/bench_bgra2rgb.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/bench_general.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/conftest.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_bgra_to_rgb.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_cls_image.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_find_monitors.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_get_pixels.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_gnu_linux.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_implementation.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_leaks.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_macos.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_save.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_setup.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_third_party.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_tools.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >copying mss/tests/test_windows.py -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests >creating /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests/res >copying mss/tests/res/monitor-1024x768.raw -> /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0-python3_9/lib/mss/tests/res >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/mss-6.0.0 > * python3_7: running distutils-r1_run_phase python_test > * Scanning for an open DISPLAY to start Xvfb ... > * Starting Xvfb on $DISPLAY=7 ... >============================= test session starts ============================== >platform linux -- Python 3.7.9, pytest-6.0.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0, configfile: setup.cfg >plugins: flaky-3.7.0 >collecting ... collected 65 items >run-last-failure: no previously failed tests, not deselecting items. > >mss/tests/test_bgra_to_rgb.py::test_bad_length PASSED [ 1%] >mss/tests/test_bgra_to_rgb.py::test_good_types PASSED [ 3%] >mss/tests/test_cls_image.py::test_custom_cls_image PASSED [ 4%] >mss/tests/test_find_monitors.py::test_get_monitors PASSED [ 6%] >mss/tests/test_find_monitors.py::test_keys_aio PASSED [ 7%] >mss/tests/test_find_monitors.py::test_keys_monitor_1 PASSED [ 9%] >mss/tests/test_find_monitors.py::test_dimensions PASSED [ 10%] >mss/tests/test_get_pixels.py::test_grab_monitor PASSED [ 12%] >mss/tests/test_get_pixels.py::test_grab_part_of_screen PASSED [ 13%] >mss/tests/test_get_pixels.py::test_grab_part_of_screen_rounded PASSED [ 15%] >mss/tests/test_get_pixels.py::test_grab_individual_pixels PASSED [ 16%] >mss/tests/test_gnu_linux.py::test_factory_systems PASSED [ 18%] >mss/tests/test_gnu_linux.py::test_arg_display PASSED [ 20%] >mss/tests/test_gnu_linux.py::test_bad_display_structure PASSED [ 21%] >mss/tests/test_gnu_linux.py::test_no_xlib_library PASSED [ 23%] >mss/tests/test_gnu_linux.py::test_no_xrandr_extension PASSED [ 24%] >mss/tests/test_gnu_linux.py::test_region_out_of_monitor_bounds PASSED [ 26%] >mss/tests/test_gnu_linux.py::test_has_extension PASSED [ 27%] >mss/tests/test_implementation.py::test_incomplete_class[MSS0] PASSED [ 29%] >mss/tests/test_implementation.py::test_incomplete_class[MSS1] PASSED [ 30%] >mss/tests/test_implementation.py::test_incomplete_class[MSS2] PASSED [ 32%] >mss/tests/test_implementation.py::test_bad_monitor PASSED [ 33%] >mss/tests/test_implementation.py::test_repr PASSED [ 35%] >mss/tests/test_implementation.py::test_factory PASSED [ 36%] >mss/tests/test_implementation.py::test_entry_point PASSED [ 38%] >mss/tests/test_implementation.py::test_grab_with_tuple PASSED [ 40%] >mss/tests/test_implementation.py::test_grab_with_tuple_percents PASSED [ 41%] >mss/tests/test_implementation.py::test_thread_safety PASSED [ 43%] >mss/tests/test_leaks.py::test_resource_leaks[bound_instance_without_cm] FAILED [ 44%] >mss/tests/test_leaks.py::test_resource_leaks[bound_instance_without_cm_but_use_close] FAILED [ 46%] >mss/tests/test_leaks.py::test_resource_leaks[unbound_instance_without_cm] FAILED [ 47%] >mss/tests/test_leaks.py::test_resource_leaks[with_context_manager] FAILED [ 49%] >mss/tests/test_leaks.py::test_resource_leaks[regression_issue_128] FAILED [ 50%] >mss/tests/test_leaks.py::test_resource_leaks[regression_issue_135] FAILED [ 52%] >mss/tests/test_macos.py::test_repr SKIPPED [ 53%] >mss/tests/test_macos.py::test_implementation SKIPPED [ 55%] >mss/tests/test_save.py::test_at_least_2_monitors PASSED [ 56%] >mss/tests/test_save.py::test_files_exist PASSED [ 58%] >mss/tests/test_save.py::test_callback PASSED [ 60%] >mss/tests/test_save.py::test_output_format_simple PASSED [ 61%] >mss/tests/test_save.py::test_output_format_positions_and_sizes PASSED [ 63%] >mss/tests/test_save.py::test_output_format_date_simple PASSED [ 64%] >mss/tests/test_save.py::test_output_format_date_custom PASSED [ 66%] >mss/tests/test_setup.py::test_wheel_python_3_only PASSED [ 67%] >mss/tests/test_third_party.py::test_numpy SKIPPED [ 69%] >mss/tests/test_third_party.py::test_pil SKIPPED [ 70%] >mss/tests/test_third_party.py::test_pil_bgra SKIPPED [ 72%] >mss/tests/test_third_party.py::test_pil_not_16_rounded SKIPPED [ 73%] >mss/tests/test_tools.py::test_bad_compression_level PASSED [ 75%] >mss/tests/test_tools.py::test_compression_level PASSED [ 76%] >mss/tests/test_tools.py::test_compression_levels[0-f37123dbc08ed7406d933af11c42563e] PASSED [ 78%] >mss/tests/test_tools.py::test_compression_levels[1-7d5dcf2a2224445daf19d6d91cf31cb5] PASSED [ 80%] >mss/tests/test_tools.py::test_compression_levels[2-bde05376cf51cf951e26c31c5f55e9d5] PASSED [ 81%] >mss/tests/test_tools.py::test_compression_levels[3-3d7e73c2a9c2d8842b363eeae8085919] PASSED [ 83%] >mss/tests/test_tools.py::test_compression_levels[4-9565a5caf89a9221459ee4e02b36bf6e] PASSED [ 84%] >mss/tests/test_tools.py::test_compression_levels[5-4d722e21e7d62fbf1e3154de7261fc67] PASSED [ 86%] >mss/tests/test_tools.py::test_compression_levels[6-055e615b74167c9bdfea16a00539450c] PASSED [ 87%] >mss/tests/test_tools.py::test_compression_levels[7-4d88d3f5923b6ef05b62031992294839] PASSED [ 89%] >mss/tests/test_tools.py::test_compression_levels[8-4d88d3f5923b6ef05b62031992294839] PASSED [ 90%] >mss/tests/test_tools.py::test_compression_levels[9-4d88d3f5923b6ef05b62031992294839] PASSED [ 92%] >mss/tests/test_tools.py::test_output_file PASSED [ 93%] >mss/tests/test_tools.py::test_output_raw_bytes PASSED [ 95%] >mss/tests/test_windows.py::test_implementation SKIPPED [ 96%] >mss/tests/test_windows.py::test_region_caching SKIPPED [ 98%] >mss/tests/test_windows.py::test_thread_safety SKIPPED [100%] > >=================================== FAILURES =================================== >________________ test_resource_leaks[bound_instance_without_cm] ________________ > >func = <function bound_instance_without_cm at 0x7f9c6fba8830> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > > @pytest.mark.skipif(OS == "darwin", reason="No possible leak on macOS.") > @pytest.mark.parametrize( > "func", > ( > bound_instance_without_cm, > bound_instance_without_cm_but_use_close, > unbound_instance_without_cm, > with_context_manager, > regression_issue_128, > regression_issue_135, > ), > ) > def test_resource_leaks(func, monitor_func): > """ Check for resource leaks with different use cases. """ > > # Warm-up > func() > >> original_resources = monitor_func() > >func = <function bound_instance_without_cm at 0x7f9c6fba8830> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > >mss/tests/test_leaks.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >mss/tests/test_leaks.py:31: in get_opened_socket > output = subprocess.check_output(cmd, shell=True) > cmd = 'lsof -U | grep 126' > subprocess = <module 'subprocess' from '/usr/lib/python3.7/subprocess.py'> >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout > kwargs = {'shell': True} > popenargs = ('lsof -U | grep 126',) > timeout = None >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >input = None, capture_output = False, timeout = None, check = True >popenargs = ('lsof -U | grep 126',), kwargs = {'shell': True, 'stdout': -1} >process = <subprocess.Popen object at 0x7f9c6fb5d3d0>, stdout = b'' >stderr = None, retcode = 1 > > def run(*popenargs, > input=None, capture_output=False, timeout=None, check=False, **kwargs): > """Run command with arguments and return a CompletedProcess instance. > > The returned instance will have attributes args, returncode, stdout and > stderr. By default, stdout and stderr are not captured, and those attributes > will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. > > If check is True and the exit code was non-zero, it raises a > CalledProcessError. The CalledProcessError object will have the return code > in the returncode attribute, and output & stderr attributes if those streams > were captured. > > If timeout is given, and the process takes too long, a TimeoutExpired > exception will be raised. > > There is an optional argument "input", allowing you to > pass bytes or a string to the subprocess's stdin. If you use this argument > you may not also use the Popen constructor's "stdin" argument, as > it will be used internally. > > By default, all communication is in bytes, and therefore any "input" should > be bytes, and the stdout and stderr will be bytes. If in text mode, any > "input" should be a string, and stdout and stderr will be strings decoded > according to locale encoding, or by "encoding" if set. Text mode is > triggered by setting any of text, encoding, errors or universal_newlines. > > The other arguments are the same as for the Popen constructor. > """ > if input is not None: > if kwargs.get('stdin') is not None: > raise ValueError('stdin and input arguments may not both be used.') > kwargs['stdin'] = PIPE > > if capture_output: > if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: > raise ValueError('stdout and stderr arguments may not be used ' > 'with capture_output.') > kwargs['stdout'] = PIPE > kwargs['stderr'] = PIPE > > with Popen(*popenargs, **kwargs) as process: > try: > stdout, stderr = process.communicate(input, timeout=timeout) > except TimeoutExpired as exc: > process.kill() > if _mswindows: > # Windows accumulates the output in a single blocking > # read() call run on child threads, with the timeout > # being done in a join() on those threads. communicate() > # _after_ kill() is required to collect that and add it > # to the exception. > exc.stdout, exc.stderr = process.communicate() > else: > # POSIX _communicate already populated the output so > # far into the TimeoutExpired exception. > process.wait() > raise > except: # Including KeyboardInterrupt, communicate handled that. > process.kill() > # We don't call process.wait() as .__exit__ does that for us. > raise > retcode = process.poll() > if check and retcode: > raise CalledProcessError(retcode, process.args, >> output=stdout, stderr=stderr) >E subprocess.CalledProcessError: Command 'lsof -U | grep 126' returned non-zero exit status 1. > >capture_output = False >check = True >input = None >kwargs = {'shell': True, 'stdout': -1} >popenargs = ('lsof -U | grep 126',) >process = <subprocess.Popen object at 0x7f9c6fb5d3d0> >retcode = 1 >stderr = None >stdout = b'' >timeout = None > >/usr/lib/python3.7/subprocess.py:512: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >_________ test_resource_leaks[bound_instance_without_cm_but_use_close] _________ > >func = <function bound_instance_without_cm_but_use_close at 0x7f9c6fba88c0> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > > @pytest.mark.skipif(OS == "darwin", reason="No possible leak on macOS.") > @pytest.mark.parametrize( > "func", > ( > bound_instance_without_cm, > bound_instance_without_cm_but_use_close, > unbound_instance_without_cm, > with_context_manager, > regression_issue_128, > regression_issue_135, > ), > ) > def test_resource_leaks(func, monitor_func): > """ Check for resource leaks with different use cases. """ > > # Warm-up > func() > >> original_resources = monitor_func() > >func = <function bound_instance_without_cm_but_use_close at 0x7f9c6fba88c0> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > >mss/tests/test_leaks.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >mss/tests/test_leaks.py:31: in get_opened_socket > output = subprocess.check_output(cmd, shell=True) > cmd = 'lsof -U | grep 126' > subprocess = <module 'subprocess' from '/usr/lib/python3.7/subprocess.py'> >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout > kwargs = {'shell': True} > popenargs = ('lsof -U | grep 126',) > timeout = None >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >input = None, capture_output = False, timeout = None, check = True >popenargs = ('lsof -U | grep 126',), kwargs = {'shell': True, 'stdout': -1} >process = <subprocess.Popen object at 0x7f9c6fae1610>, stdout = b'' >stderr = None, retcode = 1 > > def run(*popenargs, > input=None, capture_output=False, timeout=None, check=False, **kwargs): > """Run command with arguments and return a CompletedProcess instance. > > The returned instance will have attributes args, returncode, stdout and > stderr. By default, stdout and stderr are not captured, and those attributes > will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. > > If check is True and the exit code was non-zero, it raises a > CalledProcessError. The CalledProcessError object will have the return code > in the returncode attribute, and output & stderr attributes if those streams > were captured. > > If timeout is given, and the process takes too long, a TimeoutExpired > exception will be raised. > > There is an optional argument "input", allowing you to > pass bytes or a string to the subprocess's stdin. If you use this argument > you may not also use the Popen constructor's "stdin" argument, as > it will be used internally. > > By default, all communication is in bytes, and therefore any "input" should > be bytes, and the stdout and stderr will be bytes. If in text mode, any > "input" should be a string, and stdout and stderr will be strings decoded > according to locale encoding, or by "encoding" if set. Text mode is > triggered by setting any of text, encoding, errors or universal_newlines. > > The other arguments are the same as for the Popen constructor. > """ > if input is not None: > if kwargs.get('stdin') is not None: > raise ValueError('stdin and input arguments may not both be used.') > kwargs['stdin'] = PIPE > > if capture_output: > if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: > raise ValueError('stdout and stderr arguments may not be used ' > 'with capture_output.') > kwargs['stdout'] = PIPE > kwargs['stderr'] = PIPE > > with Popen(*popenargs, **kwargs) as process: > try: > stdout, stderr = process.communicate(input, timeout=timeout) > except TimeoutExpired as exc: > process.kill() > if _mswindows: > # Windows accumulates the output in a single blocking > # read() call run on child threads, with the timeout > # being done in a join() on those threads. communicate() > # _after_ kill() is required to collect that and add it > # to the exception. > exc.stdout, exc.stderr = process.communicate() > else: > # POSIX _communicate already populated the output so > # far into the TimeoutExpired exception. > process.wait() > raise > except: # Including KeyboardInterrupt, communicate handled that. > process.kill() > # We don't call process.wait() as .__exit__ does that for us. > raise > retcode = process.poll() > if check and retcode: > raise CalledProcessError(retcode, process.args, >> output=stdout, stderr=stderr) >E subprocess.CalledProcessError: Command 'lsof -U | grep 126' returned non-zero exit status 1. > >capture_output = False >check = True >input = None >kwargs = {'shell': True, 'stdout': -1} >popenargs = ('lsof -U | grep 126',) >process = <subprocess.Popen object at 0x7f9c6fae1610> >retcode = 1 >stderr = None >stdout = b'' >timeout = None > >/usr/lib/python3.7/subprocess.py:512: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >_______________ test_resource_leaks[unbound_instance_without_cm] _______________ > >func = <function unbound_instance_without_cm at 0x7f9c6fba8c20> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > > @pytest.mark.skipif(OS == "darwin", reason="No possible leak on macOS.") > @pytest.mark.parametrize( > "func", > ( > bound_instance_without_cm, > bound_instance_without_cm_but_use_close, > unbound_instance_without_cm, > with_context_manager, > regression_issue_128, > regression_issue_135, > ), > ) > def test_resource_leaks(func, monitor_func): > """ Check for resource leaks with different use cases. """ > > # Warm-up > func() > >> original_resources = monitor_func() > >func = <function unbound_instance_without_cm at 0x7f9c6fba8c20> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > >mss/tests/test_leaks.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >mss/tests/test_leaks.py:31: in get_opened_socket > output = subprocess.check_output(cmd, shell=True) > cmd = 'lsof -U | grep 126' > subprocess = <module 'subprocess' from '/usr/lib/python3.7/subprocess.py'> >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout > kwargs = {'shell': True} > popenargs = ('lsof -U | grep 126',) > timeout = None >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >input = None, capture_output = False, timeout = None, check = True >popenargs = ('lsof -U | grep 126',), kwargs = {'shell': True, 'stdout': -1} >process = <subprocess.Popen object at 0x7f9c6fab6650>, stdout = b'' >stderr = None, retcode = 1 > > def run(*popenargs, > input=None, capture_output=False, timeout=None, check=False, **kwargs): > """Run command with arguments and return a CompletedProcess instance. > > The returned instance will have attributes args, returncode, stdout and > stderr. By default, stdout and stderr are not captured, and those attributes > will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. > > If check is True and the exit code was non-zero, it raises a > CalledProcessError. The CalledProcessError object will have the return code > in the returncode attribute, and output & stderr attributes if those streams > were captured. > > If timeout is given, and the process takes too long, a TimeoutExpired > exception will be raised. > > There is an optional argument "input", allowing you to > pass bytes or a string to the subprocess's stdin. If you use this argument > you may not also use the Popen constructor's "stdin" argument, as > it will be used internally. > > By default, all communication is in bytes, and therefore any "input" should > be bytes, and the stdout and stderr will be bytes. If in text mode, any > "input" should be a string, and stdout and stderr will be strings decoded > according to locale encoding, or by "encoding" if set. Text mode is > triggered by setting any of text, encoding, errors or universal_newlines. > > The other arguments are the same as for the Popen constructor. > """ > if input is not None: > if kwargs.get('stdin') is not None: > raise ValueError('stdin and input arguments may not both be used.') > kwargs['stdin'] = PIPE > > if capture_output: > if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: > raise ValueError('stdout and stderr arguments may not be used ' > 'with capture_output.') > kwargs['stdout'] = PIPE > kwargs['stderr'] = PIPE > > with Popen(*popenargs, **kwargs) as process: > try: > stdout, stderr = process.communicate(input, timeout=timeout) > except TimeoutExpired as exc: > process.kill() > if _mswindows: > # Windows accumulates the output in a single blocking > # read() call run on child threads, with the timeout > # being done in a join() on those threads. communicate() > # _after_ kill() is required to collect that and add it > # to the exception. > exc.stdout, exc.stderr = process.communicate() > else: > # POSIX _communicate already populated the output so > # far into the TimeoutExpired exception. > process.wait() > raise > except: # Including KeyboardInterrupt, communicate handled that. > process.kill() > # We don't call process.wait() as .__exit__ does that for us. > raise > retcode = process.poll() > if check and retcode: > raise CalledProcessError(retcode, process.args, >> output=stdout, stderr=stderr) >E subprocess.CalledProcessError: Command 'lsof -U | grep 126' returned non-zero exit status 1. > >capture_output = False >check = True >input = None >kwargs = {'shell': True, 'stdout': -1} >popenargs = ('lsof -U | grep 126',) >process = <subprocess.Popen object at 0x7f9c6fab6650> >retcode = 1 >stderr = None >stdout = b'' >timeout = None > >/usr/lib/python3.7/subprocess.py:512: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >__________________ test_resource_leaks[with_context_manager] ___________________ > >func = <function with_context_manager at 0x7f9c6fba8cb0> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > > @pytest.mark.skipif(OS == "darwin", reason="No possible leak on macOS.") > @pytest.mark.parametrize( > "func", > ( > bound_instance_without_cm, > bound_instance_without_cm_but_use_close, > unbound_instance_without_cm, > with_context_manager, > regression_issue_128, > regression_issue_135, > ), > ) > def test_resource_leaks(func, monitor_func): > """ Check for resource leaks with different use cases. """ > > # Warm-up > func() > >> original_resources = monitor_func() > >func = <function with_context_manager at 0x7f9c6fba8cb0> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > >mss/tests/test_leaks.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >mss/tests/test_leaks.py:31: in get_opened_socket > output = subprocess.check_output(cmd, shell=True) > cmd = 'lsof -U | grep 126' > subprocess = <module 'subprocess' from '/usr/lib/python3.7/subprocess.py'> >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout > kwargs = {'shell': True} > popenargs = ('lsof -U | grep 126',) > timeout = None >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >input = None, capture_output = False, timeout = None, check = True >popenargs = ('lsof -U | grep 126',), kwargs = {'shell': True, 'stdout': -1} >process = <subprocess.Popen object at 0x7f9c6fad3910>, stdout = b'' >stderr = None, retcode = 1 > > def run(*popenargs, > input=None, capture_output=False, timeout=None, check=False, **kwargs): > """Run command with arguments and return a CompletedProcess instance. > > The returned instance will have attributes args, returncode, stdout and > stderr. By default, stdout and stderr are not captured, and those attributes > will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. > > If check is True and the exit code was non-zero, it raises a > CalledProcessError. The CalledProcessError object will have the return code > in the returncode attribute, and output & stderr attributes if those streams > were captured. > > If timeout is given, and the process takes too long, a TimeoutExpired > exception will be raised. > > There is an optional argument "input", allowing you to > pass bytes or a string to the subprocess's stdin. If you use this argument > you may not also use the Popen constructor's "stdin" argument, as > it will be used internally. > > By default, all communication is in bytes, and therefore any "input" should > be bytes, and the stdout and stderr will be bytes. If in text mode, any > "input" should be a string, and stdout and stderr will be strings decoded > according to locale encoding, or by "encoding" if set. Text mode is > triggered by setting any of text, encoding, errors or universal_newlines. > > The other arguments are the same as for the Popen constructor. > """ > if input is not None: > if kwargs.get('stdin') is not None: > raise ValueError('stdin and input arguments may not both be used.') > kwargs['stdin'] = PIPE > > if capture_output: > if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: > raise ValueError('stdout and stderr arguments may not be used ' > 'with capture_output.') > kwargs['stdout'] = PIPE > kwargs['stderr'] = PIPE > > with Popen(*popenargs, **kwargs) as process: > try: > stdout, stderr = process.communicate(input, timeout=timeout) > except TimeoutExpired as exc: > process.kill() > if _mswindows: > # Windows accumulates the output in a single blocking > # read() call run on child threads, with the timeout > # being done in a join() on those threads. communicate() > # _after_ kill() is required to collect that and add it > # to the exception. > exc.stdout, exc.stderr = process.communicate() > else: > # POSIX _communicate already populated the output so > # far into the TimeoutExpired exception. > process.wait() > raise > except: # Including KeyboardInterrupt, communicate handled that. > process.kill() > # We don't call process.wait() as .__exit__ does that for us. > raise > retcode = process.poll() > if check and retcode: > raise CalledProcessError(retcode, process.args, >> output=stdout, stderr=stderr) >E subprocess.CalledProcessError: Command 'lsof -U | grep 126' returned non-zero exit status 1. > >capture_output = False >check = True >input = None >kwargs = {'shell': True, 'stdout': -1} >popenargs = ('lsof -U | grep 126',) >process = <subprocess.Popen object at 0x7f9c6fad3910> >retcode = 1 >stderr = None >stdout = b'' >timeout = None > >/usr/lib/python3.7/subprocess.py:512: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >__________________ test_resource_leaks[regression_issue_128] ___________________ > >func = <function regression_issue_128 at 0x7f9c6fbd5170> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > > @pytest.mark.skipif(OS == "darwin", reason="No possible leak on macOS.") > @pytest.mark.parametrize( > "func", > ( > bound_instance_without_cm, > bound_instance_without_cm_but_use_close, > unbound_instance_without_cm, > with_context_manager, > regression_issue_128, > regression_issue_135, > ), > ) > def test_resource_leaks(func, monitor_func): > """ Check for resource leaks with different use cases. """ > > # Warm-up > func() > >> original_resources = monitor_func() > >func = <function regression_issue_128 at 0x7f9c6fbd5170> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > >mss/tests/test_leaks.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >mss/tests/test_leaks.py:31: in get_opened_socket > output = subprocess.check_output(cmd, shell=True) > cmd = 'lsof -U | grep 126' > subprocess = <module 'subprocess' from '/usr/lib/python3.7/subprocess.py'> >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout > kwargs = {'shell': True} > popenargs = ('lsof -U | grep 126',) > timeout = None >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >input = None, capture_output = False, timeout = None, check = True >popenargs = ('lsof -U | grep 126',), kwargs = {'shell': True, 'stdout': -1} >process = <subprocess.Popen object at 0x7f9c6fb7d050>, stdout = b'' >stderr = None, retcode = 1 > > def run(*popenargs, > input=None, capture_output=False, timeout=None, check=False, **kwargs): > """Run command with arguments and return a CompletedProcess instance. > > The returned instance will have attributes args, returncode, stdout and > stderr. By default, stdout and stderr are not captured, and those attributes > will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. > > If check is True and the exit code was non-zero, it raises a > CalledProcessError. The CalledProcessError object will have the return code > in the returncode attribute, and output & stderr attributes if those streams > were captured. > > If timeout is given, and the process takes too long, a TimeoutExpired > exception will be raised. > > There is an optional argument "input", allowing you to > pass bytes or a string to the subprocess's stdin. If you use this argument > you may not also use the Popen constructor's "stdin" argument, as > it will be used internally. > > By default, all communication is in bytes, and therefore any "input" should > be bytes, and the stdout and stderr will be bytes. If in text mode, any > "input" should be a string, and stdout and stderr will be strings decoded > according to locale encoding, or by "encoding" if set. Text mode is > triggered by setting any of text, encoding, errors or universal_newlines. > > The other arguments are the same as for the Popen constructor. > """ > if input is not None: > if kwargs.get('stdin') is not None: > raise ValueError('stdin and input arguments may not both be used.') > kwargs['stdin'] = PIPE > > if capture_output: > if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: > raise ValueError('stdout and stderr arguments may not be used ' > 'with capture_output.') > kwargs['stdout'] = PIPE > kwargs['stderr'] = PIPE > > with Popen(*popenargs, **kwargs) as process: > try: > stdout, stderr = process.communicate(input, timeout=timeout) > except TimeoutExpired as exc: > process.kill() > if _mswindows: > # Windows accumulates the output in a single blocking > # read() call run on child threads, with the timeout > # being done in a join() on those threads. communicate() > # _after_ kill() is required to collect that and add it > # to the exception. > exc.stdout, exc.stderr = process.communicate() > else: > # POSIX _communicate already populated the output so > # far into the TimeoutExpired exception. > process.wait() > raise > except: # Including KeyboardInterrupt, communicate handled that. > process.kill() > # We don't call process.wait() as .__exit__ does that for us. > raise > retcode = process.poll() > if check and retcode: > raise CalledProcessError(retcode, process.args, >> output=stdout, stderr=stderr) >E subprocess.CalledProcessError: Command 'lsof -U | grep 126' returned non-zero exit status 1. > >capture_output = False >check = True >input = None >kwargs = {'shell': True, 'stdout': -1} >popenargs = ('lsof -U | grep 126',) >process = <subprocess.Popen object at 0x7f9c6fb7d050> >retcode = 1 >stderr = None >stdout = b'' >timeout = None > >/usr/lib/python3.7/subprocess.py:512: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >__________________ test_resource_leaks[regression_issue_135] ___________________ > >func = <function regression_issue_135 at 0x7f9c6fbd5050> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > > @pytest.mark.skipif(OS == "darwin", reason="No possible leak on macOS.") > @pytest.mark.parametrize( > "func", > ( > bound_instance_without_cm, > bound_instance_without_cm_but_use_close, > unbound_instance_without_cm, > with_context_manager, > regression_issue_128, > regression_issue_135, > ), > ) > def test_resource_leaks(func, monitor_func): > """ Check for resource leaks with different use cases. """ > > # Warm-up > func() > >> original_resources = monitor_func() > >func = <function regression_issue_135 at 0x7f9c6fbd5050> >monitor_func = <function get_opened_socket at 0x7f9c6fc40f80> > >mss/tests/test_leaks.py:121: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >mss/tests/test_leaks.py:31: in get_opened_socket > output = subprocess.check_output(cmd, shell=True) > cmd = 'lsof -U | grep 126' > subprocess = <module 'subprocess' from '/usr/lib/python3.7/subprocess.py'> >/usr/lib/python3.7/subprocess.py:411: in check_output > **kwargs).stdout > kwargs = {'shell': True} > popenargs = ('lsof -U | grep 126',) > timeout = None >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >input = None, capture_output = False, timeout = None, check = True >popenargs = ('lsof -U | grep 126',), kwargs = {'shell': True, 'stdout': -1} >process = <subprocess.Popen object at 0x7f9c6fad3c50>, stdout = b'' >stderr = None, retcode = 1 > > def run(*popenargs, > input=None, capture_output=False, timeout=None, check=False, **kwargs): > """Run command with arguments and return a CompletedProcess instance. > > The returned instance will have attributes args, returncode, stdout and > stderr. By default, stdout and stderr are not captured, and those attributes > will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. > > If check is True and the exit code was non-zero, it raises a > CalledProcessError. The CalledProcessError object will have the return code > in the returncode attribute, and output & stderr attributes if those streams > were captured. > > If timeout is given, and the process takes too long, a TimeoutExpired > exception will be raised. > > There is an optional argument "input", allowing you to > pass bytes or a string to the subprocess's stdin. If you use this argument > you may not also use the Popen constructor's "stdin" argument, as > it will be used internally. > > By default, all communication is in bytes, and therefore any "input" should > be bytes, and the stdout and stderr will be bytes. If in text mode, any > "input" should be a string, and stdout and stderr will be strings decoded > according to locale encoding, or by "encoding" if set. Text mode is > triggered by setting any of text, encoding, errors or universal_newlines. > > The other arguments are the same as for the Popen constructor. > """ > if input is not None: > if kwargs.get('stdin') is not None: > raise ValueError('stdin and input arguments may not both be used.') > kwargs['stdin'] = PIPE > > if capture_output: > if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: > raise ValueError('stdout and stderr arguments may not be used ' > 'with capture_output.') > kwargs['stdout'] = PIPE > kwargs['stderr'] = PIPE > > with Popen(*popenargs, **kwargs) as process: > try: > stdout, stderr = process.communicate(input, timeout=timeout) > except TimeoutExpired as exc: > process.kill() > if _mswindows: > # Windows accumulates the output in a single blocking > # read() call run on child threads, with the timeout > # being done in a join() on those threads. communicate() > # _after_ kill() is required to collect that and add it > # to the exception. > exc.stdout, exc.stderr = process.communicate() > else: > # POSIX _communicate already populated the output so > # far into the TimeoutExpired exception. > process.wait() > raise > except: # Including KeyboardInterrupt, communicate handled that. > process.kill() > # We don't call process.wait() as .__exit__ does that for us. > raise > retcode = process.poll() > if check and retcode: > raise CalledProcessError(retcode, process.args, >> output=stdout, stderr=stderr) >E subprocess.CalledProcessError: Command 'lsof -U | grep 126' returned non-zero exit status 1. > >capture_output = False >check = True >input = None >kwargs = {'shell': True, 'stdout': -1} >popenargs = ('lsof -U | grep 126',) >process = <subprocess.Popen object at 0x7f9c6fad3c50> >retcode = 1 >stderr = None >stdout = b'' >timeout = None > >/usr/lib/python3.7/subprocess.py:512: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >--------------------------- Captured stdout teardown --------------------------- >Deleting 'monitor-1.png' ... >----------------------------- Captured stderr call ----------------------------- >/bin/sh: lsof: command not found >--------------------------- Captured stdout teardown --------------------------- >Deleting 'monitor-1.png' ... >--------------------------- Captured stdout teardown --------------------------- >Deleting 'monitor-1.png' ... >===Flaky Test Report=== > >test_resource_leaks[bound_instance_without_cm] failed (1 runs remaining out of 2). > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[bound_instance_without_cm] failed; it passed 0 out of the required 1 times. > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[bound_instance_without_cm_but_use_close] failed (1 runs remaining out of 2). > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[bound_instance_without_cm_but_use_close] failed; it passed 0 out of the required 1 times. > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[unbound_instance_without_cm] failed (1 runs remaining out of 2). > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[unbound_instance_without_cm] failed; it passed 0 out of the required 1 times. > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[with_context_manager] failed (1 runs remaining out of 2). > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[with_context_manager] failed; it passed 0 out of the required 1 times. > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[regression_issue_128] failed (1 runs remaining out of 2). > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[regression_issue_128] failed; it passed 0 out of the required 1 times. > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[regression_issue_135] failed (1 runs remaining out of 2). > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] >test_resource_leaks[regression_issue_135] failed; it passed 0 out of the required 1 times. > <class 'subprocess.CalledProcessError'> > Command 'lsof -U | grep 126' returned non-zero exit status 1. > [<TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:121>, <TracebackEntry /var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0/mss/tests/test_leaks.py:31>, <TracebackEntry /usr/lib/python3.7/subprocess.py:411>, <TracebackEntry /usr/lib/python3.7/subprocess.py:512>] > >===End Flaky Test Report=== >=========================== short test summary info ============================ >FAILED mss/tests/test_leaks.py::test_resource_leaks[bound_instance_without_cm] >FAILED mss/tests/test_leaks.py::test_resource_leaks[bound_instance_without_cm_but_use_close] >FAILED mss/tests/test_leaks.py::test_resource_leaks[unbound_instance_without_cm] >FAILED mss/tests/test_leaks.py::test_resource_leaks[with_context_manager] - s... >FAILED mss/tests/test_leaks.py::test_resource_leaks[regression_issue_128] - s... >FAILED mss/tests/test_leaks.py::test_resource_leaks[regression_issue_135] - s... >=================== 6 failed, 50 passed, 9 skipped in 4.12s ==================== > * ERROR: dev-python/mss-6.0.0::gentoo failed (test phase): > * Failed to run 'pytest -vv' > * > * Call stack: > * ebuild.sh, line 125: Called src_test > * environment, line 3097: Called distutils-r1_src_test > * environment, line 1337: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 517: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2689: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2120: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2118: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 910: Called distutils-r1_run_phase 'python_test' > * environment, line 1274: Called python_test > * environment, line 3039: Called virtx 'pytest' '-vv' > * environment, line 3885: Called die > * The specific snippet of code: > * [[ ${retval} -ne 0 ]] && die "Failed to run '$@'"; > * > * If you need support, post the output of `emerge --info '=dev-python/mss-6.0.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/mss-6.0.0::gentoo'`. > * The complete build log is located at '/var/log/emerge-log/build/dev-python/mss-6.0.0:20200915-082314.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/mss-6.0.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/mss-6.0.0/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0' > * S: '/var/tmp/portage/dev-python/mss-6.0.0/work/python-mss-6.0.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 742626
: 660366